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

Method __init__

authlib/oauth2/rfc6749/requests.py:68–93  ·  view source on GitHub ↗
(self, method: str, uri: str, body=None, headers=None)

Source from the content-addressed store, hash-verified

66
67class OAuth2Request(OAuth2Payload):
68 def __init__(self, method: str, uri: str, body=None, headers=None):
69 InsecureTransportError.check(uri)
70 #: HTTP method
71 self.method = method
72 self.uri = uri
73 #: HTTP headers
74 self.headers = headers or {}
75
76 # Store body for backward compatibility but issue deprecation warning if used
77 if body is not None:
78 deprecate(
79 "'body' parameter in OAuth2Request is deprecated. "
80 "Use the payload system instead.",
81 version="1.8",
82 )
83 self._body = body
84
85 self.payload = None
86
87 self.client = None
88 self.auth_method = None
89 self.user = None
90 self.authorization_code = None
91 self.refresh_token = None
92 self.credential = None
93 self._scope = None
94
95 @property
96 def args(self):

Callers

nothing calls this directly

Calls 2

deprecateFunction · 0.90
checkMethod · 0.45

Tested by

no test coverage detected