♻️(backend) rename required claims to essential claims as per spec

It was pointed by @lebaudantoine that the OIDC specification uses
the term "essential claims" for what we called required claims.

Further more, the Mozilla OIDC library that we use, validates claims
in a method called "verify_claims". Let's override this method.
This commit is contained in:
Samuel Paccoud - DINUM
2024-12-27 20:49:55 +01:00
committed by Samuel Paccoud
parent f12c06e975
commit 9f83ea7111
4 changed files with 106 additions and 109 deletions

View File

@@ -474,8 +474,8 @@ class Base(Configuration):
environ_prefix=None,
)
USER_OIDC_REQUIRED_CLAIMS = values.ListValue(
default=[], environ_name="USER_OIDC_REQUIRED_CLAIMS", environ_prefix=None
USER_OIDC_ESSENTIAL_CLAIMS = values.ListValue(
default=[], environ_name="USER_OIDC_ESSENTIAL_CLAIMS", environ_prefix=None
)
USER_OIDC_FIELDS_TO_FULLNAME = values.ListValue(
default=["first_name", "last_name"],