googleapis_auth.auth_browser library

Classes

AccessCredentials
OAuth2 Credentials.
AccessToken
An OAuth2 access token.
AuthClient
A authenticated HTTP client.
AutoRefreshingAuthClient
A autorefreshing, authenticated HTTP client.
BrowserOAuth2Flow
Used for obtaining oauth2 access credentials. [...]
ClientId
Represents the client application's credentials.
HybridFlowResult
Represents the result of running a browser based hybrid flow. [...]
ServiceAccountCredentials
Represents credentials for a service account.

Functions

authenticatedClient(Client baseClient, AccessCredentials credentials) AuthClient
Obtain an http.Client which automatically authenticates requests using credentials. [...]
autoRefreshingClient(ClientId clientId, AccessCredentials credentials, Client baseClient) AutoRefreshingAuthClient
Obtain an http.Client which automatically refreshes credentials before they expire. Uses baseClient as a base for making authenticated http requests and for refreshing credentials. [...]
clientViaApiKey(String apiKey, { Client baseClient }) Client
Obtains a HTTP client which uses the given apiKey for making HTTP requests. [...]
createImplicitBrowserFlow(ClientId clientId, List<String> scopes, { Client baseClient }) → Future<BrowserOAuth2Flow>
Will create and complete with a BrowserOAuth2Flow object. [...]
refreshCredentials(ClientId clientId, AccessCredentials credentials, Client client) → Future<AccessCredentials>
Tries to obtain refreshed AccessCredentials based on credentials using client.

Enums

ResponseType
Available response types that can be requested when using the implicit browser login flow. [...]

Exceptions / Errors

AccessDeniedException
Thrown if an attempt to make an authorized request failed.
RefreshFailedException
Thrown if an attempt to refresh a token failed.
UserConsentException
Thrown if user did not give his consent.