protected override Task <OAuth1Credentials> GetAccessTokenFromIntermediateResult( OAuth1Credentials intermediateResult) { var oauthSecret = _securityStrategy.CreateOrGetSecureParameter( _userId, OAuth1ParameterEnum.OAuthTokenSecret.EnumToString()); return(_oauthFacade.GetAccessTokenAsync( intermediateResult, oauthSecret)); }
public Task <Uri> GetAuthorizationUriAsync(string userId) { var state = _strategy.CreateOrGetSecureParameter( userId, OAuth2ParameterEnum.State.EnumToString()); var authorizationPath = _oauth.GetAuthorizationUri( _resourceProvider.AuthorizationUrl, _clientId, _resourceProvider.Scope, CallbackUri, state, _resourceProvider.Flow, _resourceProvider.Parameters); return(Task.FromResult(authorizationPath)); }