Ejemplo n.º 1
0
 public OAuthBuilder(
     IOAuthAuthorizerUIFactory oauthAuthorizerUIFactory,
     IClientCredentials clientCredentials,
     IOAuthSecurityStrategy strategy)
 {
     _oauthAuthorizerUIFactory = oauthAuthorizerUIFactory;
     _clientCredentials        = clientCredentials;
     _strategy = strategy;
 }
Ejemplo n.º 2
0
 public OAuth2FragmentCallbackHandler(
     IOAuthSecurityStrategy securityStrategy,
     string securityParameter,
     string userId) :
     base(
         securityStrategy,
         securityParameter,
         userId)
 {
 }
Ejemplo n.º 3
0
 public OAuth1CallbackHandler(
     IOAuthSecurityStrategy securityStrategy,
     string securityParameter,
     string userId) :
     base(
         securityStrategy,
         securityParameter,
         userId,
         new HtmlSerializer())
 {
 }
Ejemplo n.º 4
0
 protected OAuthCallbackHandlerBase(
     IOAuthSecurityStrategy securityStrategy,
     string securityParameter,
     string userId,
     ISerializer serializer)
 {
     _securityParameter = securityParameter;
     _userId            = userId;
     _serializer        = serializer;
     _securityStrategy  = securityStrategy;
 }
Ejemplo n.º 5
0
 public OAuth1AuthenticationTemplate(
     IOAuthAuthorizerUI authorizerUI,
     IOAuthFacade <OAuth1Credentials> oauthFacade,
     IOAuthSecurityStrategy securityStrategy,
     string userId) :
     base(
         authorizerUI,
         oauthFacade)
 {
     _securityStrategy = securityStrategy;
     _userId           = userId;
 }
Ejemplo n.º 6
0
 public OAuth2Web(
     string clientId,
     string callbackUri,
     IOAuthSecurityStrategy strategy) :
     base(
         new TResourceProvider(),
         clientId,
         callbackUri,
         new OAuth2Authentication(),
         strategy)
 {
 }
Ejemplo n.º 7
0
 public OAuth2AuthenticationFacade(
     OAuth2ResourceProvider resourceProvider,
     string clientId,
     string callbackUri,
     IOAuth2Authentication oauth,
     IOAuthSecurityStrategy strategy)
 {
     _clientId         = clientId;
     _resourceProvider = resourceProvider;
     CallbackUri       = new Uri(callbackUri);
     _oauth            = oauth;
     _strategy         = strategy;
 }
Ejemplo n.º 8
0
 public OAuth1Web(
     string consumerKey,
     string consumerSecret,
     string callbackUrl,
     IOAuthSecurityStrategy securityStrategy) :
     base(
         new TResourceProvider(),
         consumerKey,
         consumerSecret,
         callbackUrl,
         new OAuth1Authentication(),
         securityStrategy)
 {
 }
Ejemplo n.º 9
0
 public OAuth1AuthenticationFacade(
     OAuth1ResourceProvider resourceProvider,
     string consumerKey,
     string consumerSecret,
     string callbackUrl,
     IOAuth1Authentication oauth,
     IOAuthSecurityStrategy securityStrategy)
 {
     _consumerKey      = consumerKey;
     _consumerSecret   = consumerSecret;
     _resourceProvider = resourceProvider;
     _oauth            = oauth;
     _securityStrategy = securityStrategy;
     CallbackUri       = new Uri(callbackUrl);
 }