public static void ConfigureSessionCache(ITokenCacheRepository tokenCacheRepository) { if (!(FederatedAuthentication.FederationConfiguration.IdentityConfiguration.Caches.SessionSecurityTokenCache is PassiveRepositorySessionSecurityTokenCache)) { FederatedAuthentication.FederationConfiguration.IdentityConfiguration.Caches.SessionSecurityTokenCache = new PassiveRepositorySessionSecurityTokenCache(tokenCacheRepository); } }
public PassiveRepositorySessionSecurityTokenCache(ITokenCacheRepository tokenCacheRepository, SessionSecurityTokenCache inner) { if (tokenCacheRepository == null) throw new ArgumentNullException("tokenCacheRepository"); if (inner == null) throw new ArgumentNullException("inner"); this.tokenCacheRepository = tokenCacheRepository; this.inner = inner; }
public static void ConfigureSessionCache(ITokenCacheRepository tokenCacheRepository) { var handler = FederatedAuthentication.ServiceConfiguration.SecurityTokenHandlers[typeof(SessionSecurityToken)] as SessionSecurityTokenHandler; if (handler == null) throw new Exception("SessionSecurityTokenHandler not registered."); if (!(handler.TokenCache is PassiveRepositorySessionSecurityTokenCache)) { handler.TokenCache = new PassiveRepositorySessionSecurityTokenCache(tokenCacheRepository, handler.TokenCache); } }
public static void ConfigureSessionCache(ITokenCacheRepository tokenCacheRepository) { var handler = FederatedAuthentication.ServiceConfiguration.SecurityTokenHandlers[typeof(SessionSecurityToken)] as SessionSecurityTokenHandler; if (handler == null) { throw new Exception("SessionSecurityTokenHandler not registered."); } if (!(handler.TokenCache is PassiveRepositorySessionSecurityTokenCache)) { handler.TokenCache = new PassiveRepositorySessionSecurityTokenCache(tokenCacheRepository, handler.TokenCache); } }
public PassiveRepositorySessionSecurityTokenCache(ITokenCacheRepository tokenCacheRepository, SessionSecurityTokenCache inner) { if (tokenCacheRepository == null) { throw new ArgumentNullException("tokenCacheRepository"); } if (inner == null) { throw new ArgumentNullException("inner"); } this.tokenCacheRepository = tokenCacheRepository; this.inner = inner; }
public PassiveRepositorySessionSecurityTokenCache(ITokenCacheRepository tokenCacheRepository) : this(tokenCacheRepository, new MruSecurityTokenCache()) { }
public PassiveRepositorySessionSecurityTokenCache(ITokenCacheRepository tokenCacheRepository) : this(tokenCacheRepository, FederatedAuthentication.FederationConfiguration.IdentityConfiguration.Caches.SessionSecurityTokenCache) { }