Inject javascript into the main authorize page for better UX (#81)

This commit is contained in:
Christiaan Goossens
2025-07-12 10:40:06 +02:00
committed by GitHub
parent b4d5d7f2bf
commit 86c663700c
5 changed files with 168 additions and 0 deletions

View File

@@ -14,6 +14,7 @@ FEATURES_AUTOMATIC_USER_LINKING = "automatic_user_linking"
FEATURES_AUTOMATIC_PERSON_CREATION = "automatic_person_creation"
FEATURES_DISABLE_PKCE = "disable_rfc7636"
FEATURES_INCLUDE_GROUPS_SCOPE = "include_groups_scope"
FEATURE_DISABLE_FRONTEND_INJECTION = "disable_frontend_changes"
CLAIMS = "claims"
CLAIMS_DISPLAY_NAME = "display_name"
CLAIMS_USERNAME = "username"
@@ -69,6 +70,10 @@ CONFIG_SCHEMA = vol.Schema(
vol.Optional(
FEATURES_INCLUDE_GROUPS_SCOPE, default=True
): vol.Coerce(bool),
# Disable frontend injection of OIDC login button
vol.Optional(
FEATURE_DISABLE_FRONTEND_INJECTION, default=False
): vol.Coerce(bool),
}
),
# Determine which specific claims will be used from the id_token