MCPcopy
hub / github.com/authlib/authlib / get_algorithms

Method get_algorithms

authlib/oidc/rpinitiated/end_session.py:263–272  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.

Callers 1

Calls 2

get_server_jwksMethod · 0.95
import_key_setMethod · 0.80

Tested by

no test coverage detected