fix(oidc): implement required subject types supported meta (#1996)

The well known openid-configuration should have the subject_types_supported meta values.
This commit is contained in:
James Elliott 2021-05-11 11:00:29 +10:00 committed by GitHub
parent 2c8341974d
commit 46c8a25c15
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View File

@ -50,6 +50,9 @@ func oidcWellKnown(ctx *middlewares.AutheliaCtx) {
"groups",
"name",
}
configuration.SubjectTypesSupported = []string{
"public",
}
configuration.ResponseTypesSupported = []string{
"code",
"token",

View File

@ -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"`