From 46c8a25c15b94c8ae3dbe83896137352c62b4eb2 Mon Sep 17 00:00:00 2001 From: James Elliott Date: Tue, 11 May 2021 11:00:29 +1000 Subject: [PATCH] fix(oidc): implement required subject types supported meta (#1996) The well known openid-configuration should have the subject_types_supported meta values. --- internal/handlers/handler_oidc_wellknown.go | 3 +++ internal/handlers/types_oidc.go | 1 + 2 files changed, 4 insertions(+) diff --git a/internal/handlers/handler_oidc_wellknown.go b/internal/handlers/handler_oidc_wellknown.go index ca0fa06a2..bd7b9231e 100644 --- a/internal/handlers/handler_oidc_wellknown.go +++ b/internal/handlers/handler_oidc_wellknown.go @@ -50,6 +50,9 @@ func oidcWellKnown(ctx *middlewares.AutheliaCtx) { "groups", "name", } + configuration.SubjectTypesSupported = []string{ + "public", + } configuration.ResponseTypesSupported = []string{ "code", "token", diff --git a/internal/handlers/types_oidc.go b/internal/handlers/types_oidc.go index 47bf53618..40686a68a 100644 --- a/internal/handlers/types_oidc.go +++ b/internal/handlers/types_oidc.go @@ -52,6 +52,7 @@ type WellKnownConfigurationJSON struct { RevocationEndpoint string `json:"revocation_endpoint"` JWKSURL string `json:"jwks_uri"` Algorithms []string `json:"id_token_signing_alg_values_supported"` + SubjectTypesSupported []string `json:"subject_types_supported"` ResponseTypesSupported []string `json:"response_types_supported"` ScopesSupported []string `json:"scopes_supported"` ClaimsSupported []string `json:"claims_supported"`