public ExternalController( IIdentityServerInteractionService interaction, IClientStore clientStore, IEventService events, ILogger <ExternalController> logger, ZNxtUserStore users = null) { // 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; _logger = logger; _events = events; }
// private readonly IAppAuthTokenHandler _appAuthTokenHandler; public AccountController( IIdentityServerInteractionService interaction, IClientStore clientStore, IAuthenticationSchemeProvider schemeProvider, IEventService events, // IAppAuthTokenHandler appAuthTokenHandler, ZNxtUserStore users = null) { // 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; // _appAuthTokenHandler = appAuthTokenHandler; }
public AppAuthTokenHandler(IDBService dBService, ILogger logger, IEncryption encryption, IOAuthClientService oAuthClientService, ZNxtUserStore users, IInMemoryCacheService inMemoryCacheService, IApiGatewayService apiGateway) { _dBService = dBService; _logger = logger; _encryption = encryption; _oAuthClientService = oAuthClientService; _userService = users; _inMemoryCacheService = inMemoryCacheService; _apiGateway = apiGateway; var data = CommonUtility.GetAppConfigValue("AppTokenValidationDuration"); if (!string.IsNullOrEmpty(data)) { long duration; if (long.TryParse(data, out duration)) { AppTokenValidationDuration = duration; } } }
public PasswordSetController(ZNxtUserStore zNxtUserStore, IZNxtUserService userService, IHttpContextProxy httpContextProxy) { _userService = userService; _zNxtUserStore = zNxtUserStore; _httpContextProxy = httpContextProxy; }