moved code: FileManager.Authentication