mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
fix(oidc): missing amr claim supported in discovery (#3147)
This adds the AMR claim to discovery.
This commit is contained in:
parent
9d5ac4526e
commit
148ec1e2e0
|
@ -30,6 +30,7 @@ func NewOpenIDConnectWellKnownConfiguration(enablePKCEPlainChallenge, pairwise b
|
|||
ScopeEmail,
|
||||
},
|
||||
ClaimsSupported: []string{
|
||||
"amr",
|
||||
"aud",
|
||||
"exp",
|
||||
"iat",
|
||||
|
|
|
@ -170,7 +170,8 @@ func TestOpenIDConnectProvider_NewOpenIDConnectProvider_GetOpenIDConnectWellKnow
|
|||
assert.Contains(t, disco.RequestObjectSigningAlgValuesSupported, "RS256")
|
||||
assert.Contains(t, disco.RequestObjectSigningAlgValuesSupported, "none")
|
||||
|
||||
assert.Len(t, disco.ClaimsSupported, 15)
|
||||
assert.Len(t, disco.ClaimsSupported, 16)
|
||||
assert.Contains(t, disco.ClaimsSupported, "amr")
|
||||
assert.Contains(t, disco.ClaimsSupported, "aud")
|
||||
assert.Contains(t, disco.ClaimsSupported, "exp")
|
||||
assert.Contains(t, disco.ClaimsSupported, "iat")
|
||||
|
@ -244,8 +245,9 @@ func TestOpenIDConnectProvider_NewOpenIDConnectProvider_GetOAuth2WellKnownConfig
|
|||
assert.Contains(t, disco.ResponseTypesSupported, "code token id_token")
|
||||
assert.Contains(t, disco.ResponseTypesSupported, "none")
|
||||
|
||||
assert.Len(t, disco.ClaimsSupported, 15)
|
||||
assert.Len(t, disco.ClaimsSupported, 16)
|
||||
assert.Contains(t, disco.ClaimsSupported, "aud")
|
||||
assert.Contains(t, disco.ClaimsSupported, "amr")
|
||||
assert.Contains(t, disco.ClaimsSupported, "exp")
|
||||
assert.Contains(t, disco.ClaimsSupported, "iat")
|
||||
assert.Contains(t, disco.ClaimsSupported, "iss")
|
||||
|
|
Loading…
Reference in New Issue
Block a user