Пример #1
0
 public GenericAuthenticationHandler(
     IOptionsMonitor <TokenAuthenticationOptions> options,
     ILoggerFactory logger,
     UrlEncoder encoder,
     ISystemClock clock,
     IFeatureManager featureManager,
     IOAuthSettingsFactory authSettingsFactory)
     : base(options, logger, encoder, clock)
 {
     FeatureManager      = featureManager;
     AuthSettingsFactory = authSettingsFactory;
 }
Пример #2
0
 public M2MOAuthFlow(IOAuthSettingsFactory authSettingsFactory)
 {
     Settings = authSettingsFactory.GetDefaultMachineToMachine();
 }
 public JwtIntrospector(IHttpContextAccessor httpContextAccessor, IOAuthSettingsFactory authSettingsFactory)
 {
     HttpContextAccessor = httpContextAccessor;
     OAuthSettings       = authSettingsFactory.GetDefaultPkce();
 }