diff options
author | Ib Lundgren <ib.lundgren@gmail.com> | 2013-05-28 07:59:14 -0700 |
---|---|---|
committer | Ib Lundgren <ib.lundgren@gmail.com> | 2013-05-28 07:59:14 -0700 |
commit | cd14e3db53a1c04e7b61f175845bd1bbe40c79b6 (patch) | |
tree | 993cf8b58984dba3e012037397774db91fe12a41 /oauthlib/oauth2 | |
parent | d7c49e4b4b958556c2a8228368eb1f030144f830 (diff) | |
parent | 8931f3ad93fa051ca81cf53dd1b1c8f7169c8142 (diff) | |
download | oauthlib-cd14e3db53a1c04e7b61f175845bd1bbe40c79b6.tar.gz |
Merge pull request #161 from dasevilla/base-client-docs
Document Base OAuth 2 Client
Diffstat (limited to 'oauthlib/oauth2')
-rw-r--r-- | oauthlib/oauth2/draft25/__init__.py | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/oauthlib/oauth2/draft25/__init__.py b/oauthlib/oauth2/draft25/__init__.py index 53370a7..e268f2f 100644 --- a/oauthlib/oauth2/draft25/__init__.py +++ b/oauthlib/oauth2/draft25/__init__.py @@ -99,19 +99,23 @@ class Client(object): [I-D.ietf-oauth-v2-bearer] is utilized by simply including the access token string in the request: - GET /resource/1 HTTP/1.1 - Host: example.com - Authorization: Bearer mF_9.B5f-4.1JqM + .. code-block:: http + + GET /resource/1 HTTP/1.1 + Host: example.com + Authorization: Bearer mF_9.B5f-4.1JqM while the "mac" token type defined in [I-D.ietf-oauth-v2-http-mac] is utilized by issuing a MAC key together with the access token which is used to sign certain components of the HTTP requests: - GET /resource/1 HTTP/1.1 - Host: example.com - Authorization: MAC id="h480djs93hd8", - nonce="274312:dj83hs9s", - mac="kDZvddkndxvhGRXZhvuDjEWhGeE=" + .. code-block:: http + + GET /resource/1 HTTP/1.1 + Host: example.com + Authorization: MAC id="h480djs93hd8", + nonce="274312:dj83hs9s", + mac="kDZvddkndxvhGRXZhvuDjEWhGeE=" .. _`I-D.ietf-oauth-v2-bearer`: http://tools.ietf.org/html/draft-ietf-oauth-v2-28#ref-I-D.ietf-oauth-v2-bearer .. _`I-D.ietf-oauth-v2-http-mac`: http://tools.ietf.org/html/draft-ietf-oauth-v2-28#ref-I-D.ietf-oauth-v2-http-mac |