diff options
author | Ib Lundgren <ib.lundgren@gmail.com> | 2012-10-04 00:24:39 +0200 |
---|---|---|
committer | Ib Lundgren <ib.lundgren@gmail.com> | 2012-10-04 00:24:39 +0200 |
commit | 49ee07e194f7b484ff7938c428b0a2a7b1789247 (patch) | |
tree | 1b804be4c43e465afd8456677cf4b54949666b92 /oauthlib/oauth2/draft25/tokens.py | |
parent | 10952e0226666bd6d408346a2295667f72f6eb56 (diff) | |
download | oauthlib-oauth2_draft25_server.tar.gz |
Diffstat (limited to 'oauthlib/oauth2/draft25/tokens.py')
-rw-r--r-- | oauthlib/oauth2/draft25/tokens.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/oauthlib/oauth2/draft25/tokens.py b/oauthlib/oauth2/draft25/tokens.py index 74491fb..79fe7a2 100644 --- a/oauthlib/oauth2/draft25/tokens.py +++ b/oauthlib/oauth2/draft25/tokens.py @@ -130,3 +130,13 @@ def prepare_bearer_body(token, body=u''): .. _`Bearer Token`: http://tools.ietf.org/html/draft-ietf-oauth-v2-bearer-18 """ return add_params_to_qs(body, [((u'access_token', token))]) + + +class BearerTokenHandler(object): + + def __call__(self, endpoint, grant): + grant[u'token_type'] = u'Bearer' + return grant + + def validate(self, parameters): + pass |