fix: add code_challenge_methods_supported to discovery endpoint (#43)
* fix: add code_challenge_methods_supported to discovery endpoint * fix mock
This commit is contained in:
parent
5a8e69978f
commit
57cf8ee9c7
5 changed files with 32 additions and 0 deletions
|
@ -28,6 +28,7 @@ func CreateDiscoveryConfig(c Configuration, s Signer) *oidc.DiscoveryConfigurati
|
|||
IDTokenSigningAlgValuesSupported: SigAlgorithms(s),
|
||||
SubjectTypesSupported: SubjectTypes(c),
|
||||
TokenEndpointAuthMethodsSupported: AuthMethods(c),
|
||||
CodeChallengeMethodsSupported: CodeChallengeMethods(c),
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -117,3 +118,11 @@ func AuthMethods(c Configuration) []string {
|
|||
}
|
||||
return authMethods
|
||||
}
|
||||
|
||||
func CodeChallengeMethods(c Configuration) []string {
|
||||
codeMethods := make([]string, 0, 1)
|
||||
if c.CodeMethodS256Supported() {
|
||||
codeMethods = append(codeMethods, CodeMethodS256)
|
||||
}
|
||||
return codeMethods
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue