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

Method __call__

authlib/oauth2/rfc9207/parameter.py:7–22  ·  view source on GitHub ↗
(self, authorization_server)

Source from the content-addressed store, hash-verified

5
6class IssuerParameter:
7 def __call__(self, authorization_server):
8 if isinstance(authorization_server, BaseGrant):
9 deprecate(
10 "IssueParameter should be used as an authorization server extension with 'authorization_server.register_extension(IssueParameter())'.",
11 version="1.8",
12 )
13 authorization_server.register_hook(
14 "after_authorization_response",
15 self.add_issuer_parameter,
16 )
17
18 else:
19 authorization_server.register_hook(
20 "after_create_authorization_response",
21 self.add_issuer_parameter,
22 )
23
24 def add_issuer_parameter(self, authorization_server, response):
25 if self.get_issuer() and response.location:

Callers

nothing calls this directly

Calls 2

deprecateFunction · 0.90
register_hookMethod · 0.45

Tested by

no test coverage detected