Beispiel #1
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;
 }
Beispiel #2
0
 public IOAuthFacade <OAuth2Credentials> BuildOAuth2Facade(
     OAuth2ResourceProvider resourceProvider,
     IOAuth2Authentication authentication,
     string clientId,
     string clientSecret,
     string callbackUrl)
 {
     return(new OAuth2AuthenticationFacade(
                resourceProvider,
                clientId,
                callbackUrl,
                authentication,
                _strategy));
 }
 public RefreshTokenFacade(IOAuth2Authentication oauth)
 {
     _oauth = oauth;
 }