Return the list of allowed algorithms for ID token validation. By default, returns all algorithms compatible with the keys in the JWKS. Override to restrict to specific algorithms.
(self)
| 261 | raise NotImplementedError() |
| 262 | |
| 263 | def get_algorithms(self) -> list[str]: |
| 264 | """Return the list of allowed algorithms for ID token validation. |
| 265 | |
| 266 | By default, returns all algorithms compatible with the keys in the JWKS. |
| 267 | Override to restrict to specific algorithms. |
| 268 | """ |
| 269 | jwks = self.get_server_jwks() |
| 270 | if isinstance(jwks, dict): |
| 271 | jwks = KeySet.import_key_set(jwks) |
| 272 | return [alg.name for alg in JWSRegistry.filter_algorithms(jwks)] |
| 273 | |
| 274 | def end_session(self, end_session_request: EndSessionRequest) -> None: |
| 275 | """Terminate the user's session. |
no test coverage detected