public ApiMiddleware(RequestDelegate next, ILogger <ApiMiddleware> logger, IOptions <AppApiKeys> apiKeys, IOptions <AuthPasswordHash> hashKey) { _next = next; _logger = logger; _hashKey = hashKey.Value; _apiKeys = apiKeys.Value; _apiPath = "api"; }
public AuthServices( IOptions <AuthPasswordHash> authPassword, IHttpContextAccessor actionContext, SignInManager <MyAuthUser> signInManager, UserManager <MyAuthUser> userManager, ILogger <AuthServices> logger, RequestValidatorPartsHelper requestValidatorPartsHelper, IOptions <FlaskFaceAuthServiceConfig> flaskFaceAuth, FlaskFaceAuthServices flaskFaceAuthServices ) { _authPassword = authPassword.Value; _encrypterDecrypter = new EncrypterHashAuth(authPassword.Value.PasswordHash); _actionContext = actionContext; _signInManager = signInManager; _userManager = userManager; _logger = logger; _requestValidatorPartsHelper = requestValidatorPartsHelper; _flaskFaceAuthServices = flaskFaceAuthServices; }