Beta
See: Description
Interface | Description |
---|---|
OAuthSigner |
Beta OAuth signature method. |
Class | Description |
---|---|
AbstractOAuthGetToken |
Beta Generic OAuth 1.0a URL to request a temporary or long-lived token from an authorization server. |
OAuthAuthorizeTemporaryTokenUrl |
Beta OAuth 1.0a URL builder for an authorization web page to allow the end user to authorize the temporary token. |
OAuthCallbackUrl |
Beta Generic URL that parses the callback URL after a temporary token has been authorized by the end user. |
OAuthCredentialsResponse |
Beta Data to parse a success response to a request for temporary or token credentials. |
OAuthGetAccessToken |
Beta Generic OAuth 1.0a URL to request to exchange the temporary credentials token (or "request token") for a long-lived credentials token (or "access token") from an authorization server. |
OAuthGetTemporaryToken |
Beta Generic OAuth 1.0a URL to request a temporary credentials token (or "request token") from an authorization server. |
OAuthHmacSigner | |
OAuthParameters |
Beta OAuth 1.0a parameter manager. |
OAuthRsaSigner |
Beta
There are a few features not supported by this implementation:
PLAINTEXT
signature algorithm"application/x-www-form-urlencoded"
HTTP request body"oauth_*"
parameters specified in the HTTP request URL (instead assumes they are
specified in the Authorization
header)Before using this library, you may need to set up your application as follows:
consumerKey
on every OAuth request, for example
in AbstractOAuthGetToken.consumerKey
.OAuthHmacSigner.clientSharedSecret
when using the
"HMAC-SHA1"
signature method."HMAC-SHA1"
signature method. The documentation for the
authorization server will need to provide you with the consumerKey
and
clientSharedSecret
to use."HMAC-SHA1"
signature method, use
OAuthHmacSigner
."RSA-SHA1"
signature method, use
OAuthRsaSigner
.After the set up has been completed, the typical application flow is:
OAuthGetTemporaryToken
. A callback URL should be
specified for web applications, but does not need to be specified for installed applications.
OAuthAuthorizeTemporaryTokenUrl
.OAuthCallbackUrl
.OAuthGetAccessToken
. This access token must
be stored.OAuthParameters.token
and using
OAuthParameters
as the
HttpRequestInitializer
.Copyright © 2011–2019 Google. All rights reserved.