MCPcopy Create free account
hub / github.com/authlib/authlib / __init__

Method __init__

authlib/integrations/httpx_client/oauth2_client.py:222–252  ·  view source on GitHub ↗
(
        self,
        client_id=None,
        client_secret=None,
        token_endpoint_auth_method=None,
        revocation_endpoint_auth_method=None,
        scope=None,
        redirect_uri=None,
        token=None,
        token_placement="header",
        update_token=None,
        **kwargs,
    )

Source from the content-addressed store, hash-verified

220 oauth_error_class = OAuthError
221
222 def __init__(
223 self,
224 client_id=None,
225 client_secret=None,
226 token_endpoint_auth_method=None,
227 revocation_endpoint_auth_method=None,
228 scope=None,
229 redirect_uri=None,
230 token=None,
231 token_placement="header",
232 update_token=None,
233 **kwargs,
234 ):
235 # extract httpx2.Client kwargs
236 client_kwargs = self._extract_session_request_params(kwargs)
237 httpx2.Client.__init__(self, **client_kwargs)
238
239 _OAuth2Client.__init__(
240 self,
241 session=self,
242 client_id=client_id,
243 client_secret=client_secret,
244 token_endpoint_auth_method=token_endpoint_auth_method,
245 revocation_endpoint_auth_method=revocation_endpoint_auth_method,
246 scope=scope,
247 redirect_uri=redirect_uri,
248 token=token,
249 token_placement=token_placement,
250 update_token=update_token,
251 **kwargs,
252 )
253
254 @staticmethod
255 def handle_error(error_type, error_description):

Callers 1

__init__Method · 0.45

Calls 1

Tested by

no test coverage detected