Skip to content

Commit

Permalink
oauth2: Corrected oidc discovery claims and scope values (ory#1428)
Browse files Browse the repository at this point in the history
Signed-off-by: André Filipe <[email protected]>
Signed-off-by: André Filipe Easypay <[email protected]>
  • Loading branch information
MASNathan authored and aeneasr committed May 9, 2019
1 parent 82963ad commit b405190
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions oauth2/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"},
Expand Down
4 changes: 2 additions & 2 deletions oauth2/handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"},
Expand Down

0 comments on commit b405190

Please sign in to comment.