| Trees | Indices | Help |
|---|
|
|
An OAuth 2.0 client. Tools for interacting with OAuth 2.0 protected resources.
Author: jcgregorio@google.com (Joe Gregorio)
|
|||
|
Error Base error for this module. |
|||
|
FlowExchangeError Error trying to exchange an authorization grant for an access token. |
|||
|
AccessTokenRefreshError Error trying to refresh an expired access token. |
|||
|
UnknownClientSecretsFlowError The client secrets file called for an unknown type of OAuth 2.0 flow. |
|||
|
AccessTokenCredentialsError Having only the access_token means no refresh is possible. |
|||
|
VerifyJwtTokenError Could on retrieve certificates for validation. |
|||
|
MemoryCache httplib2 Cache implementation which only caches locally. |
|||
|
Credentials Base class for all Credentials objects. |
|||
|
Flow Base class for all Flow objects. |
|||
|
Storage Base class for all Storage objects. |
|||
|
OAuth2Credentials Credentials object for OAuth 2.0. |
|||
|
AccessTokenCredentials Credentials object for OAuth 2.0. |
|||
|
AssertionCredentials Abstract Credentials object used for OAuth 2.0 assertion grants. |
|||
|
SignedJwtAssertionCredentials Credentials object used for OAuth 2.0 Signed JWT assertion grants. |
|||
|
OAuth2WebServerFlow Does the Web Server Flow for OAuth 2.0. |
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
HAS_OPENSSL = True
|
|||
logger = logging.getLogger(__name__)
|
|||
EXPIRY_FORMAT =
|
|||
ID_TOKEN_VERIFICATON_CERTS =
|
|||
OOB_CALLBACK_URN =
|
|||
_cached_http = httplib2.Http(MemoryCache())
|
|||
__package__ =
|
|||
|
|||
Extract the JSON payload from a JWT. Does the extraction w/o checking the signature. Args: id_token: string, OAuth 2.0 id_token. Returns: object, The deserialized JSON payload. |
Parses response of an exchange token request.
Most providers return JSON but some (e.g. Facebook) return a
url-encoded string.
Args:
content: The body of a response
Returns:
Content as a dictionary object. Note that the dict could be empty,
i.e. {}. That basically indicates a failure.
|
|
|||
ID_TOKEN_VERIFICATON_CERTS
|
| Trees | Indices | Help |
|---|
| Generated by Epydoc 3.0.1 on Thu Aug 30 07:12:42 2012 | http://epydoc.sourceforge.net |