utils
oauthlib.utils ~~~~~~~~~~~~~~
This module contains utility methods used by various parts of the OAuth spec.
escape(u)
Escape a unicode string in an OAuth-compatible fashion.
Per section 3.6
_ of the spec.
.. _section 3.6
: https://tools.ietf.org/html/rfc5849#section-3.6
Source code in server/vendor/oauthlib/oauth1/rfc5849/utils.py
40 41 42 43 44 45 46 47 48 49 50 51 52 53 |
|
filter_oauth_params(params)
Removes all non oauth parameters from a dict or a list of params.
Source code in server/vendor/oauthlib/oauth1/rfc5849/utils.py
31 32 33 34 35 36 37 |
|
filter_params(target)
Decorator which filters params to remove non-oauth_* parameters
Assumes the decorated method takes a params dict or list of tuples as its first argument.
Source code in server/vendor/oauthlib/oauth1/rfc5849/utils.py
17 18 19 20 21 22 23 24 25 26 27 28 |
|
parse_authorization_header(authorization_header)
Parse an OAuth authorization header into a list of 2-tuples
Source code in server/vendor/oauthlib/oauth1/rfc5849/utils.py
74 75 76 77 78 79 80 81 82 83 |
|
parse_http_list(u)
A unicode-safe version of urllib2.parse_http_list
Source code in server/vendor/oauthlib/oauth1/rfc5849/utils.py
68 69 70 71 |
|
parse_keqv_list(l)
A unicode-safe version of urllib2.parse_keqv_list
Source code in server/vendor/oauthlib/oauth1/rfc5849/utils.py
62 63 64 65 |
|