MCPcopy
hub / github.com/authlib/authlib / __call__

Method __call__

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

is_openid_scopeFunction · 0.85
register_hookMethod · 0.45

Tested by

no test coverage detected