From 5aef6df235cf9d609c2b096a5e8854ea1ca6b200 Mon Sep 17 00:00:00 2001 From: KN4CK3R Date: Sun, 13 Jun 2021 19:41:20 +0000 Subject: [PATCH] Added more metadata. --- models/oauth2_application.go | 2 +- templates/user/auth/oidc_wellknown.tmpl | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/models/oauth2_application.go b/models/oauth2_application.go index 9e50292af4dc..5be11b76bc13 100644 --- a/models/oauth2_application.go +++ b/models/oauth2_application.go @@ -394,7 +394,7 @@ func (grant *OAuth2Grant) TableName() string { return "oauth2_grant" } -// GenerateNewAuthorizationCode generates a new authorization code for a grant and saves it to the databse +// GenerateNewAuthorizationCode generates a new authorization code for a grant and saves it to the database func (grant *OAuth2Grant) GenerateNewAuthorizationCode(redirectURI, codeChallenge, codeChallengeMethod string) (*OAuth2AuthorizationCode, error) { return grant.generateNewAuthorizationCode(x, redirectURI, codeChallenge, codeChallengeMethod) } diff --git a/templates/user/auth/oidc_wellknown.tmpl b/templates/user/auth/oidc_wellknown.tmpl index c72684ccd5c9..6b1f8f899c13 100644 --- a/templates/user/auth/oidc_wellknown.tmpl +++ b/templates/user/auth/oidc_wellknown.tmpl @@ -27,5 +27,13 @@ "updated_at", "email", "email_verified" + ], + "code_challenge_methods_supported": [ + "plain", + "S256" + ], + "grant_types_supported": [ + "authorization_code", + "refresh_token" ] }