C# Класс 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.
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
ToQueryString ( string>.IDictionary form ) : string

Описание методов

EndOAuthFlow() публичный статический Метод

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.
Результат Task

GetInitialOAuthUrl() публичный статический Метод

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
Результат string