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

Method register_client_auth_method

authlib/oauth2/client.py:139–147  ·  view source on GitHub ↗

Extend client authenticate for token endpoint. :param auth: an instance to sign the request

(self, auth)

Source from the content-addressed store, hash-verified

137 self.leeway = leeway
138
139 def register_client_auth_method(self, auth):
140 """Extend client authenticate for token endpoint.
141
142 :param auth: an instance to sign the request
143 """
144 if isinstance(auth, tuple):
145 self._auth_methods[auth[0]] = auth[1]
146 else:
147 self._auth_methods[auth.name] = auth
148
149 def client_auth(self, auth_method):
150 if isinstance(auth_method, str) and auth_method in self._auth_methods:

Callers 6

_get_oauth_clientMethod · 0.45
register_jwt_client_authFunction · 0.45
test_issuer_as_audienceFunction · 0.45
test_client_secret_jwtFunction · 0.45
test_private_key_jwtFunction · 0.45

Calls

no outgoing calls

Tested by 5

register_jwt_client_authFunction · 0.36
test_issuer_as_audienceFunction · 0.36
test_client_secret_jwtFunction · 0.36
test_private_key_jwtFunction · 0.36