示例#1
0
 public IOAuthFacade <OAuth1Credentials> BuildOAuth1Facade(
     OAuth1ResourceProvider resourceProvider,
     IOAuth1Authentication authentication,
     string consumerKey,
     string consumerSecret,
     string callbackUrl)
 {
     return(new OAuth1AuthenticationFacade(
                resourceProvider,
                consumerKey,
                consumerSecret,
                callbackUrl,
                authentication,
                _strategy));
 }
示例#2
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);
 }