Esempio n. 1
0
 public OAuthBuilder(
     IOAuthAuthorizerUIFactory oauthAuthorizerUIFactory,
     IClientCredentials clientCredentials,
     IOAuthSecurityStrategy strategy)
 {
     _oauthAuthorizerUIFactory = oauthAuthorizerUIFactory;
     _clientCredentials        = clientCredentials;
     _strategy = strategy;
 }
Esempio n. 2
0
 public OAuth2FragmentCallbackHandler(
     IOAuthSecurityStrategy securityStrategy,
     string securityParameter,
     string userId) :
     base(
         securityStrategy,
         securityParameter,
         userId)
 {
 }
Esempio n. 3
0
 public OAuth1CallbackHandler(
     IOAuthSecurityStrategy securityStrategy,
     string securityParameter,
     string userId) :
     base(
         securityStrategy,
         securityParameter,
         userId,
         new HtmlSerializer())
 {
 }
 protected OAuthCallbackHandlerBase(
     IOAuthSecurityStrategy securityStrategy,
     string securityParameter,
     string userId,
     ISerializer serializer)
 {
     _securityParameter = securityParameter;
     _userId            = userId;
     _serializer        = serializer;
     _securityStrategy  = securityStrategy;
 }
Esempio n. 5
0
 public OAuth1AuthenticationTemplate(
     IOAuthAuthorizerUI authorizerUI,
     IOAuthFacade <OAuth1Credentials> oauthFacade,
     IOAuthSecurityStrategy securityStrategy,
     string userId) :
     base(
         authorizerUI,
         oauthFacade)
 {
     _securityStrategy = securityStrategy;
     _userId           = userId;
 }
Esempio n. 6
0
 public OAuth2Web(
     string clientId,
     string callbackUri,
     IOAuthSecurityStrategy strategy) :
     base(
         new TResourceProvider(),
         clientId,
         callbackUri,
         new OAuth2Authentication(),
         strategy)
 {
 }
Esempio 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;
 }
Esempio n. 8
0
 public OAuth1Web(
     string consumerKey,
     string consumerSecret,
     string callbackUrl,
     IOAuthSecurityStrategy securityStrategy) :
     base(
         new TResourceProvider(),
         consumerKey,
         consumerSecret,
         callbackUrl,
         new OAuth1Authentication(),
         securityStrategy)
 {
 }
Esempio 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);
 }