Skip to content
Permalink
Browse files

oauth2: Corrected oidc discovery claims and scope values (#1428)

Signed-off-by: André Filipe <andre.r.flip@gmail.com>
Signed-off-by: André Filipe Easypay <andre@easypay.pt>
  • Loading branch information...
MASNathan authored and aeneasr committed May 9, 2019
1 parent 82963ad commit b40519074fc13155acc6ffa1c8bfc9a906c417ae
Showing with 4 additions and 4 deletions.
  1. +2 −2 oauth2/handler.go
  2. +2 −2 oauth2/handler_test.go
@@ -226,8 +226,8 @@ func (h *Handler) WellKnownHandler(w http.ResponseWriter, r *http.Request) {
RegistrationEndpoint: h.c.OAuth2ClientRegistrationURL().String(),
SubjectTypes: h.c.SubjectTypesSupported(),
ResponseTypes: []string{"code", "code id_token", "id_token", "token id_token", "token", "token id_token code"},
ClaimsSupported: h.c.OIDCDiscoverySupportedScope(),
ScopesSupported: h.c.OIDCDiscoverySupportedClaims(),
ClaimsSupported: h.c.OIDCDiscoverySupportedClaims(),
ScopesSupported: h.c.OIDCDiscoverySupportedScope(),
UserinfoEndpoint: h.c.OIDCDiscoveryUserinfoEndpoint(),
TokenEndpointAuthMethodsSupported: []string{"client_secret_post", "client_secret_basic", "private_key_jwt", "none"},
IDTokenSigningAlgValuesSupported: []string{"RS256"},
@@ -398,8 +398,8 @@ func TestHandlerWellKnown(t *testing.T) {
RegistrationEndpoint: conf.OAuth2ClientRegistrationURL().String(),
SubjectTypes: []string{"pairwise", "public"},
ResponseTypes: []string{"code", "code id_token", "id_token", "token id_token", "token", "token id_token code"},
ClaimsSupported: conf.OIDCDiscoverySupportedScope(),
ScopesSupported: conf.OIDCDiscoverySupportedClaims(),
ClaimsSupported: conf.OIDCDiscoverySupportedClaims(),
ScopesSupported: conf.OIDCDiscoverySupportedScope(),
UserinfoEndpoint: conf.OIDCDiscoveryUserinfoEndpoint(),
TokenEndpointAuthMethodsSupported: []string{"client_secret_post", "client_secret_basic", "private_key_jwt", "none"},
GrantTypesSupported: []string{"authorization_code", "implicit", "client_credentials", "refresh_token"},

0 comments on commit b405190

Please sign in to comment.
You can’t perform that action at this time.