(self, authorization_server)
| 5 | |
| 6 | class 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: |
nothing calls this directly
no test coverage detected