Skip to content

Commit

Permalink
oauth2: Exposes proper oidc configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
arekkas committed Jun 18, 2018
1 parent f806fd6 commit 158d081
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions oauth2/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,9 @@ func (h *Handler) WellKnownHandler(w http.ResponseWriter, r *http.Request, _ htt
IDTokenSigningAlgValuesSupported: []string{"RS256"},
GrantTypesSupported: []string{"authorization_code", "implicit", "client_credentials"},
ResponseModesSupported: []string{"query", "fragment"},
RequestParameterSupported: true,
RequestURIParameterSupported: true,
RequireRequestURIRegistration: true,
})
}

Expand Down
3 changes: 3 additions & 0 deletions oauth2/handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,9 @@ func TestHandlerWellKnown(t *testing.T) {
GrantTypesSupported: []string{"authorization_code", "implicit", "client_credentials"},
ResponseModesSupported: []string{"query", "fragment"},
IDTokenSigningAlgValuesSupported: []string{"RS256"},
RequestParameterSupported: true,
RequestURIParameterSupported: true,
RequireRequestURIRegistration: true,
}
var wellKnownResp oauth2.WellKnown
err = json.NewDecoder(res.Body).Decode(&wellKnownResp)
Expand Down

0 comments on commit 158d081

Please sign in to comment.