MCPcopy
hub / github.com/authlib/authlib / __init__

Method __init__

authlib/oauth1/rfc5849/wrapper.py:17–42  ·  view source on GitHub ↗
(self, method, uri, body=None, headers=None)

Source from the content-addressed store, hash-verified

15
16class OAuth1Request:
17 def __init__(self, method, uri, body=None, headers=None):
18 InsecureTransportError.check(uri)
19 self.method = method
20 self.uri = uri
21 self.body = body
22 self.headers = headers or {}
23
24 # states namespaces
25 self.client = None
26 self.credential = None
27 self.user = None
28
29 self.query = urlparse.urlparse(uri).query
30 self.query_params = url_decode(self.query)
31 self.body_params = extract_params(body) or []
32
33 self.auth_params, self.realm = _parse_authorization_header(headers)
34 self.signature_type, self.oauth_params = _parse_oauth_params(
35 self.query_params, self.body_params, self.auth_params
36 )
37
38 params = []
39 params.extend(self.query_params)
40 params.extend(self.body_params)
41 params.extend(self.auth_params)
42 self.params = params
43
44 @property
45 def client_id(self):

Callers

nothing calls this directly

Calls 5

url_decodeFunction · 0.90
extract_paramsFunction · 0.90
_parse_oauth_paramsFunction · 0.85
checkMethod · 0.45

Tested by

no test coverage detected