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

Method __call__

authlib/oidc/core/grants/code.py:150–159  ·  view source on GitHub ↗
(self, grant)

Source from the content-addressed store, hash-verified

148 validate_nonce(grant.request, self.exists_nonce, self.require_nonce)
149
150 def __call__(self, grant):
151 grant.register_hook("after_create_token_response", self.process_token)
152 if is_openid_scope(grant.request.payload.scope):
153 grant.register_hook(
154 "after_validate_authorization_request_payload",
155 self.validate_openid_authorization_request,
156 )
157 grant.register_hook(
158 "after_validate_consent_request", validate_request_prompt
159 )

Callers

nothing calls this directly

Calls 2

is_openid_scopeFunction · 0.85
register_hookMethod · 0.45

Tested by

no test coverage detected