public Saml2Handler(
     IOptionsMonitor <Saml2Options> options,
     ILoggerFactory logger,
     UrlEncoder encoder,
     ISystemClock clock,
     ISamlService samlService,
     IHttpRedirectBinding httpRedirectBinding,
     IHttpArtifactBinding httpArtifactBinding,
     ISaml2ClaimFactory claimFactory)
     : base(options, logger, encoder, clock)
 {
     _logger              = logger.CreateLogger(typeof(Saml2Handler));
     _samlService         = samlService;
     _httpRedirectBinding = httpRedirectBinding;
     _httpArtifactBinding = httpArtifactBinding;
     _claimFactory        = claimFactory;
 }
 public SamlService(
     IHttpRedirectBinding httpRedirectBinding,
     IHttpArtifactBinding httpArtifactBinding,
     ISaml2MessageFactory saml2MessageFactory,
     ICertificateProvider certificateProvider,
     ISamlProvider samlProvider,
     ISaml2Validator saml2Validator,
     Saml2Configuration saml2Configuration)
 {
     _httpRedirectBinding           = httpRedirectBinding;
     _httpArtifactBinding           = httpArtifactBinding;
     _saml2MessageFactory           = saml2MessageFactory;
     _certificateProvider           = certificateProvider;
     _samlProvider                  = samlProvider;
     _saml2Validator                = saml2Validator;
     _saml2Configuration            = saml2Configuration;
     _identityProviderConfiguration = saml2Configuration.IdentityProviderConfiguration;
     _serviceProviderConfiguration  = saml2Configuration.ServiceProviderConfiguration;
 }
Exemplo n.º 3
0
 public Saml2Handler(
     IOptionsMonitor <Saml2Options> options,
     ILoggerFactory logger,
     UrlEncoder encoder,
     ISystemClock clock,
     IHttpRedirectBinding httpRedirectBinding,
     IHttpArtifactBinding httpArtifactBinding,
     ISessionStore sessionStore,
     ISamlService samlService,
     IConfigurationProvider configurationProvider)
     : base(options, logger, encoder, clock)
 {
     _logger = logger.CreateLogger(typeof(Saml2Handler));
     _httpRedirectBinding   = httpRedirectBinding;
     _httpArtifactBinding   = httpArtifactBinding;
     _sessionStore          = sessionStore;
     _samlService           = samlService;
     _configurationProvider = configurationProvider;
 }
Exemplo n.º 4
0
 public SamlService(
     IHttpContextAccessor contextAccessor,
     ISamlMessageFactory samlMessageFactory,
     IHttpArtifactBinding httpArtifactBinding,
     IHttpRedirectBinding httpRedirectBinding,
     ISamlXmlProvider xmlProvider,
     ISamlValidator validator,
     ISamlClaimFactory claimFactory,
     ILogger <SamlService> logger,
     IConfigurationProvider configurationProvider)
 {
     _contextAccessor     = contextAccessor;
     _samlMessageFactory  = samlMessageFactory;
     _httpArtifactBinding = httpArtifactBinding;
     _httpRedirectBinding = httpRedirectBinding;
     _xmlProvider         = xmlProvider;
     _validator           = validator;
     _claimFactory        = claimFactory;
     _logger = logger;
     _configurationProvider = configurationProvider;
 }