public OpenIdAxHandler(ClaimProvider issuer, IOpenIdRelyingPartyFacade openIdRelyingParty) : base(issuer) { if (openIdRelyingParty == null) throw new ArgumentNullException("openIdRelyingParty"); this.openIdRelyingParty = openIdRelyingParty; }
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.RetrieveMultiProtocolIssuer(); }
public TwitterHandler(ClaimProvider issuer) : base(issuer) { this.issuer = issuer; this.consumerKey = issuer.Parameters["consumer_key"]; this.consumerSecret = issuer.Parameters["consumer_secret"]; this.apiUrl = issuer.Parameters["api_url"]; var description = new ServiceProviderDescription { RequestTokenEndpoint = new MessageReceivingEndpoint("http://twitter.com/oauth/request_token", HttpDeliveryMethods.GetRequest | HttpDeliveryMethods.AuthorizationHeaderRequest), UserAuthorizationEndpoint = new MessageReceivingEndpoint("http://twitter.com/oauth/authenticate", HttpDeliveryMethods.GetRequest | HttpDeliveryMethods.AuthorizationHeaderRequest), AccessTokenEndpoint = new MessageReceivingEndpoint("http://twitter.com/oauth/access_token", HttpDeliveryMethods.GetRequest | HttpDeliveryMethods.AuthorizationHeaderRequest), TamperProtectionElements = new ITamperProtectionChannelBindingElement[] { new HmacSha1SigningBindingElement() } }; }
public OpenIdAxHandler(ClaimProvider issuer) : this(issuer, new OpenIdRelyingPartyFacade()) { }
public IProtocolHandler RetrieveProtocolHandler(ClaimProvider issuer) { return this.container.Resolve<IProtocolHandler>( issuer.Protocol, new ParameterOverride("issuer", issuer)); }
protected ProtocolHandlerBase(ClaimProvider issuer) : this(issuer, new DefaultConfigurationRepository()) { }