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); } }
public _otrAuthenticationStateProvider(ISessionStorageService _sessionStorage, ISyncSessionStorageService _syncSessionStorage) { sessionStorage = _sessionStorage; syncSessionStorage = _syncSessionStorage; }
public ProtectedSessionStorage(EncryptionService encryptionService, ISessionStorageService sessionStorageService, ISyncSessionStorageService syncSessionStorageService) { _encryptionService = encryptionService; _sessionStorageService = sessionStorageService; _syncSessionStorageService = syncSessionStorageService; }
public ServerSessionManager(ISyncSessionStorageService sessionStorage) { _sessionStorage = sessionStorage; }