Ejemplo n.º 1
0
 public CheckSessionController(IAuthenticationService authenticationService, IJwtParser jwtParser, IOAuthClientQueryRepository oAuthClientQueryRepository, IOptions <OpenIDHostOptions> options)
 {
     _authenticationService      = authenticationService;
     _jwtParser                  = jwtParser;
     _oauthClientQueryRepository = oAuthClientQueryRepository;
     _openidHostOptions          = options.Value;
 }
 public OpenIDRegisterRequestHandler(IEnumerable <IGrantTypeHandler> grantTypeHandlers, IEnumerable <IResponseTypeHandler> responseTypeHandlers,
                                     IEnumerable <IOAuthClientAuthenticationHandler> oauthClientAuthenticationHandlers, IOAuthClientQueryRepository oauthClientQueryRepository,
                                     IOAuthClientCommandRepository oAuthClientCommandRepository, IOAuthScopeQueryRepository oauthScopeRepository, IJwtParser jwtParser, IHttpClientFactory httpClientFactory, IEnumerable <ISubjectTypeBuilder> subjectTypeBuilders, IEnumerable <ISignHandler> signHandlers,
                                     IEnumerable <ICEKHandler> cekHandlers, IEnumerable <IEncHandler> encHandlers, IOptions <OAuthHostOptions> oauthHostOptions, IOptions <OpenIDHostOptions> openidHostOptions)
     : base(grantTypeHandlers, responseTypeHandlers, oauthClientAuthenticationHandlers, oauthClientQueryRepository, oAuthClientCommandRepository, oauthScopeRepository, jwtParser, httpClientFactory, signHandlers, cekHandlers, encHandlers, oauthHostOptions)
 {
     _subjectTypeBuilders = subjectTypeBuilders;
     _openIDHostOptions   = openidHostOptions.Value;
 }
 public AddOpenIdClientHandler(
     IOAuthClientRepository oauthClientRepository,
     IJwtParser jwtParser,
     IHttpClientFactory httpClientFactory,
     IOAuthClientValidator oauthClientValidator,
     IOptions <OAuthHostOptions> oauthHostOptions,
     IOptions <OpenIDHostOptions> openidHostOptions) : base(oauthClientRepository, jwtParser, httpClientFactory, oauthClientValidator, oauthHostOptions)
 {
     _openIDHostOptions = openidHostOptions.Value;
 }
 public DynamicAuthenticationSchemeProvider(
     IDataProtectionProvider dataProtectionProvider,
     IServiceProvider serviceProvider,
     IOptions <OpenIDHostOptions> openidOptions,
     IOptions <AuthenticationOptions> options) : base(options)
 {
     _dataProtectionProvider = dataProtectionProvider;
     _serviceProvider        = serviceProvider;
     _openidOptions          = openidOptions.Value;
 }
 public BCAuthorizeRequestValidator(
     IJwtParser jwtParser,
     IOAuthUserRepository oauthUserRepository,
     IBCAuthorizeRepository bcAuthorizeRepository,
     IRequestObjectValidator requestObjectValidator,
     IOptions <OpenIDHostOptions> options)
 {
     _jwtParser              = jwtParser;
     _oauthUserRepository    = oauthUserRepository;
     _bcAuthorizeRepository  = bcAuthorizeRepository;
     _requestObjectValidator = requestObjectValidator;
     _options = options.Value;
 }
 public BCAuthorizeHandler(
     IClientAuthenticationHelper clientAuthenticationHelper,
     IBCAuthorizeRequestValidator bcAuthorizeRequestValidator,
     IBCNotificationService bcNotificationService,
     IBCAuthorizeRepository bcAuthorizeRepository,
     IOptions <OpenIDHostOptions> options)
 {
     _clientAuthenticationHelper  = clientAuthenticationHelper;
     _bcAuthorizeRequestValidator = bcAuthorizeRequestValidator;
     _bcNotificationService       = bcNotificationService;
     _bcAuthorizeRepository       = bcAuthorizeRepository;
     _options = options.Value;
 }
Ejemplo n.º 7
0
 public BaseAuthenticateController(
     IOptions <OpenIDHostOptions> options,
     IDataProtectionProvider dataProtectionProvider,
     IOAuthClientRepository oauthClientRepository,
     IAmrHelper amrHelper,
     IOAuthUserRepository oauthUserCommandRepository)
 {
     _options                    = options.Value;
     _dataProtector              = dataProtectionProvider.CreateProtector("Authorization");
     _oauthClientRepository      = oauthClientRepository;
     _amrHelper                  = amrHelper;
     _oauthUserCommandRepository = oauthUserCommandRepository;
 }
Ejemplo n.º 8
0
 public OpenIdClientValidator(
     IEnumerable <ISubjectTypeBuilder> subjectTypeBuilders,
     IEnumerable <IResponseTypeHandler> responseTypeHandlers,
     IEnumerable <IGrantTypeHandler> grantTypeHandlers,
     IEnumerable <IOAuthClientAuthenticationHandler> oAuthClientAuthenticationHandlers,
     IEnumerable <ISignHandler> signHandlers,
     IEnumerable <ICEKHandler> cekHandlers,
     IEnumerable <IEncHandler> encHandlers,
     IOAuthScopeQueryRepository oauthScopeQueryRepository,
     IOptions <OpenIDHostOptions> openIDHostOptions) : base(responseTypeHandlers, grantTypeHandlers, oAuthClientAuthenticationHandlers, signHandlers, cekHandlers, encHandlers, oauthScopeQueryRepository)
 {
     _subjectTypeBuilders = subjectTypeBuilders;
     _openIDHostOptions   = openIDHostOptions.Value;
 }
Ejemplo n.º 9
0
 public CheckSessionController(
     IOptions <OpenIDHostOptions> options,
     IJwtParser jwtParser,
     IOAuthUserRepository oAuthUserRepository,
     IOAuthClientRepository oAuthClientRepository,
     IJwtBuilder jwtBuilder,
     IHttpClientFactory httpClientFactory)
 {
     _options               = options.Value;
     _jwtParser             = jwtParser;
     _oauthUserRepository   = oAuthUserRepository;
     _oauthClientRepository = oAuthClientRepository;
     _jwtBuilder            = jwtBuilder;
     _httpClientFactory     = httpClientFactory;
 }
 public OpenIDAuthorizationRequestHandler(
     IOptions <OpenIDHostOptions> options,
     IEnumerable <IResponseTypeHandler> responseTypeHandlers,
     IEnumerable <IAuthorizationRequestValidator> authorizationRequestValidators,
     IEnumerable <ITokenProfile> tokenProfiles,
     IAuthorizationRequestEnricher authorizationRequestEnricher,
     IOAuthClientRepository oauthClientRepository,
     IOAuthUserRepository oauthUserRepository) : base(
         responseTypeHandlers,
         authorizationRequestValidators,
         tokenProfiles,
         authorizationRequestEnricher,
         oauthClientRepository,
         oauthUserRepository)
 {
     _options = options.Value;
 }
Ejemplo n.º 11
0
 public AmrHelper(IAuthenticationContextClassReferenceRepository authenticationContextClassReferenceRepository, IOptions <OpenIDHostOptions> options)
 {
     _authenticationContextClassReferenceRepository = authenticationContextClassReferenceRepository;
     _options = options.Value;
 }
Ejemplo n.º 12
0
 public SessionManager(IOptionsMonitor <OpenIDHostOptions> options, IDataProtectionProvider dataProtectionProvider)
 {
     _options          = options.CurrentValue;
     _ticketDataFormat = new TicketDataFormat(dataProtectionProvider.CreateProtector("Microsoft.AspNetCore.Authentication.Cookies.CookieAuthenticationMiddleware", _options.AuthenticationScheme, "v2"));
 }
Ejemplo n.º 13
0
 public HomeController(IOptions <OpenIDHostOptions> options)
 {
     _options = options.Value;
 }
 public BCNotificationService(IOptions <OpenIDHostOptions> options)
 {
     _options = options.Value;
 }