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

Method __init__

authlib/oauth2/auth.py:61–71  ·  view source on GitHub ↗
(self, client_id, client_secret, auth_method=None)

Source from the content-addressed store, hash-verified

59 }
60
61 def __init__(self, client_id, client_secret, auth_method=None):
62 if auth_method is None:
63 auth_method = "client_secret_basic"
64
65 self.client_id = client_id
66 self.client_secret = client_secret
67
68 if auth_method in self.DEFAULT_AUTH_METHODS:
69 auth_method = self.DEFAULT_AUTH_METHODS[auth_method]
70
71 self.auth_method = auth_method
72
73 def prepare(self, method, uri, headers, body):
74 return self.auth_method(self, method, uri, headers, body)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected