public SessionsController( IIdentityServerInteractionService interaction, IClientStore clientStore, IAuthenticationSchemeProvider schemeProvider, IEventService events, TestUserStore users, ICredentialStore credentialStore, ISessionStore sessionStore, ILoginAttemptStore loginAttemptStore, IRequestInfoService requestInfoService, ILoginAttemptLimitingService loginAttemptLimitingService, ICredentialPenaltyStore credentialPenaltyStore) { // if the TestUserStore is not in DI, then we'll just use the global users collection // this is where you would plug in your own custom identity management library (e.g. ASP.NET Identity) _users = users; _interaction = interaction; _clientStore = clientStore; _schemeProvider = schemeProvider; _events = events; this.CredentialStore = credentialStore; this.SessionStore = sessionStore; this.LoginAttemptStore = loginAttemptStore; this.RequestInfoService = requestInfoService; this.LoginAttemptLimitingService = loginAttemptLimitingService; this.CredentialPenaltyStore = credentialPenaltyStore; }
public SessionService( ICredentialStore credentialStore, ILoginAttemptStore loginAttemptStore, ICredentialPenaltyStore credentialPenaltyStore, ISessionStore sessionStore) { this.CredentialStore = credentialStore; this.LoginAttemptStore = loginAttemptStore; this.CredentialPenaltyStore = credentialPenaltyStore; this.SessionStore = sessionStore; }