Exemplo n.º 1
0
        public async Task <LdapCredential> GetLdapCredentialsAsync()
        {
            var encryptedCreds = await _sessionStorageService.GetItemAsync <LdapCredential>("ldapCredentials");

            encryptedCreds.UserName = _cryptService.DecryptString(encryptedCreds.UserName);
            encryptedCreds.Password = _cryptService.DecryptString(encryptedCreds.Password);

            return(encryptedCreds);
        }