fixes for token endpoint

This commit is contained in:
Livio Amstutz 2019-12-16 14:10:43 +01:00
parent 20a90c71d9
commit a21f6745f7
12 changed files with 192 additions and 146 deletions

View file

@ -110,10 +110,10 @@ func SubjectTypes(c Configuration) []string {
func AuthMethods(c Configuration) []string {
authMethods := []string{
AuthMethodBasic,
string(AuthMethodBasic),
}
if c.AuthMethodPostSupported() {
authMethods = append(authMethods, AuthMethodPost)
authMethods = append(authMethods, string(AuthMethodPost))
}
return authMethods
}