public AuthExternalController(ILoggerFactory logger, IOptions <ConfigSettingsBase> configSettingsBase, IEventService events, IUserCredentialServices userServices) { this._logger = logger.CreateLogger <AuthController>(); this._configSettingsBase = configSettingsBase; this._logger.LogInformation("AccountController init success"); this._events = events; this._userServices = userServices; }
public AccountController( IIdentityServerInteractionService interaction, IClientStore clientStore, IAuthenticationSchemeProvider schemeProvider, IEventService events, IUserCredentialServices usersServices, IOptions <ConfigSettingsBase> settings, IOptions <ConfigEmailBase> configEmail) { // 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) _usersServices = usersServices; _interaction = interaction; _clientStore = clientStore; _schemeProvider = schemeProvider; _events = events; _settings = settings; _configEmail = configEmail; }
public ResourceOwnerPasswordValidator(IOptions <ConfigSettingsBase> configSettingsBase, IUserCredentialServices userServices) { this._settings = configSettingsBase.Value; this._userServices = userServices; }