public AuthenticationService(HttpClient httpClient, ISyncSessionStorageService sessionStorage)
        {
            _httpClient             = httpClient;
            _sessionStorage         = sessionStorage;
            _httpClient.BaseAddress = new Uri(Configuration.BaseUri);
            var token = _sessionStorage.GetItem <string>(JhiAuthenticationtoken);

            if (!string.IsNullOrEmpty(token))
            {
                JwtToken = new JwtToken {
                    IdToken = token
                };
                SetUserAndAuthorizationHeader(JwtToken);
            }
        }
Exemple #2
0
 public _otrAuthenticationStateProvider(ISessionStorageService _sessionStorage, ISyncSessionStorageService _syncSessionStorage)
 {
     sessionStorage     = _sessionStorage;
     syncSessionStorage = _syncSessionStorage;
 }
 public ProtectedSessionStorage(EncryptionService encryptionService, ISessionStorageService sessionStorageService, ISyncSessionStorageService syncSessionStorageService)
 {
     _encryptionService         = encryptionService;
     _sessionStorageService     = sessionStorageService;
     _syncSessionStorageService = syncSessionStorageService;
 }
Exemple #4
0
 public ServerSessionManager(ISyncSessionStorageService sessionStorage)
 {
     _sessionStorage = sessionStorage;
 }