C# Class GoogleCloudExtension.OAuth.OAuthManager

This is a rather small class that takes care of the OAUTH 2.0 protocol to get at the refresh token for a user.
Afficher le fichier Open project: GoogleCloudPlatform/google-cloud-visualstudio

Méthodes publiques

Méthode Description
EndOAuthFlow ( OAuthCredentials credentials, string redirectUrl, string accessCode ) : Task

Returns the refresh code given the credentials and the accessCode.

GetInitialOAuthUrl ( OAuthCredentials credentials, string redirectUrl, IEnumerable scopes ) : string

Returns the URL to use to start the OAUTH login flow.

Private Methods

Méthode Description
ToQueryString ( string>.IDictionary form ) : string

Method Details

EndOAuthFlow() public static méthode

Returns the refresh code given the credentials and the accessCode.
public static EndOAuthFlow ( OAuthCredentials credentials, string redirectUrl, string accessCode ) : Task
credentials OAuthCredentials The oauth credentials.
redirectUrl string
accessCode string The access code returned from the login flow.
Résultat Task

GetInitialOAuthUrl() public static méthode

Returns the URL to use to start the OAUTH login flow.
public static GetInitialOAuthUrl ( OAuthCredentials credentials, string redirectUrl, IEnumerable scopes ) : string
credentials OAuthCredentials
redirectUrl string
scopes IEnumerable
Résultat string