Esempio n. 1
0
 public TwitterHandler(ClaimProvider issuer)
     : base(issuer)
 {
     this.issuer = issuer;
     this.consumerKey = issuer.Parameters["consumer_key"];
     this.consumerSecret = issuer.Parameters["consumer_secret"];
 }
Esempio n. 2
0
 public FacebookHandler(ClaimProvider issuer)
     : base(issuer)
 {
     this.issuer = issuer;
     this.applicationId = issuer.Parameters["application_id"];
     this.apiUrl = issuer.Parameters["api_url"];
     this.secret = issuer.Parameters["secret"];
 }
Esempio n. 3
0
 public GoogleHandler(ClaimProvider issuer)
     : base(issuer)
 {
     if (issuer == null)
         throw new ArgumentNullException(nameof(issuer));
     _issuer = issuer;
     _clientId = _issuer.Parameters["clientId"];
     _clientSecret = _issuer.Parameters["clientSecret"];
 }
Esempio n. 4
0
        public LiveIdHandler(ClaimProvider issuer)
            : base(issuer)
        {
            if (issuer == null)
                throw new ArgumentNullException("issuer");

            this.issuer = issuer;
            this.appId = this.issuer.Parameters["wll_appid"];
            this.secretKey = this.issuer.Parameters["wll_secret"];
        }
Esempio n. 5
0
        protected ProtocolHandlerBase(ClaimProvider issuer, IConfigurationRepository configuration)
        {
            if (issuer == null)
                throw new ArgumentNullException("issuer");

            if (configuration == null)
                throw new ArgumentNullException("configuration");

            this.Issuer = issuer;
            this.Configuration = configuration;
            this.MultiProtocolIssuer = this.Configuration.MultiProtocolIssuer;
        }
Esempio n. 6
0
 public SamlHandler(ClaimProvider issuer)
     : base(issuer)
 {
     _signingKeyThumbprint = issuer.Parameters["signingKeyThumbprint"];
     _issuer = issuer.Parameters["issuer"];
     _identityProviderSSOURL = issuer.Parameters["identityProviderSSOURL"];
     _audienceRestriction = issuer.Parameters["audienceRestriction"];
     _requestedAuthnContextComparisonMethod = issuer.Parameters["requestedAuthnContextComparisonMethod"];
     var authnContextClassRefs = issuer.Parameters["authnContextClassRefs"];
     _authnContextClassRefs = !string.IsNullOrWhiteSpace(authnContextClassRefs)
         ? authnContextClassRefs.Split(',').ToList()
         : new List<string>();
 }
Esempio n. 7
0
        public AzureAdOAuthHandler(ClaimProvider issuer)
            : base(issuer)
        {
            if (issuer == null)
                throw new ArgumentNullException("issuer");

            this.issuer = issuer;
            _appId = this.issuer.Parameters["clientId"];
            _secretKey = this.issuer.Parameters["key"];
            _graphApiEndpoint = this.issuer.Parameters["graphApiEndpoint"];
            _tokenEndpoint = this.issuer.Parameters["tokenEndpoint"];
            _authorizationEndpoint = this.issuer.Parameters["authorizationEndpoint"];
            _graphApiVersion = this.issuer.Parameters["graphApiVersion"];
        }
 public IProtocolHandler RetrieveProtocolHandler(ClaimProvider issuer)
 {
     return this.container.Resolve<IProtocolHandler>(
                       issuer.Protocol,
                       new ParameterOverride("issuer", issuer));
 }
Esempio n. 9
0
 public OpenIdHandler(ClaimProvider issuer)
     : base(issuer)
 {
 }
Esempio n. 10
0
 public WSFedHandler(ClaimProvider issuer)
     : base(issuer)
 {
     this.signingKeyThumbprint = issuer.Parameters["signingKeyThumbprint"];
 }
Esempio n. 11
0
 protected ProtocolHandlerBase(ClaimProvider issuer)
     : this(issuer, new DefaultConfigurationRepository())
 {
 }
Esempio n. 12
0
 public YahooHandler(ClaimProvider issuer)
     : base(issuer)
 {
 }
Esempio n. 13
0
 public WSFedHandler(ClaimProvider issuer)
     : base(issuer)
 {
     _signingKeyThumbprint = issuer.Parameters["signingKeyThumbprint"];
     _wsfedEndpoint = issuer.Parameters["wsfedEndpoint"];
 }
Esempio n. 14
0
 public RelativeOpenIdHandler(ClaimProvider issuer)
     : base(issuer)
 {
 }
Esempio n. 15
0
 protected ProtocolHandlerBase(ClaimProvider issuer)
     : this(issuer, DefaultConfigurationRepository.Instance)
 {
 }
Esempio n. 16
0
 public AWFOSHandler(ClaimProvider issuer)
     : base(issuer)
 {
     _identityProviderSSOURL = issuer.Parameters["identityProviderSSOURL"];
 }
Esempio n. 17
0
 public GoogleHandler(ClaimProvider issuer)
     : base(issuer)
 {
 }