public OAuth2AuthenticationFacade( OAuth2ResourceProvider resourceProvider, string clientId, string callbackUri, IOAuth2Authentication oauth, IOAuthSecurityStrategy strategy) { _clientId = clientId; _resourceProvider = resourceProvider; CallbackUri = new Uri(callbackUri); _oauth = oauth; _strategy = strategy; }
public IOAuthFacade <OAuth2Credentials> BuildOAuth2Facade( OAuth2ResourceProvider resourceProvider, IOAuth2Authentication authentication, string clientId, string clientSecret, string callbackUrl) { return(new OAuth2AuthenticationFacade( resourceProvider, clientId, callbackUrl, authentication, _strategy)); }