Skip to content

Commit

Permalink
fix: add device code grant_type to oidc metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
nsklikas committed Sep 23, 2024
1 parent 327febe commit 41a3eca
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@
"authorization_code",
"implicit",
"client_credentials",
"refresh_token"
"refresh_token",
"urn:ietf:params:oauth:grant-type:device_code"
],
"id_token_signed_response_alg": [
"RS256"
Expand Down
3 changes: 2 additions & 1 deletion oauth2/.snapshots/TestHandlerWellKnown-hsm_enabled=true.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@
"authorization_code",
"implicit",
"client_credentials",
"refresh_token"
"refresh_token",
"urn:ietf:params:oauth:grant-type:device_code"
],
"id_token_signed_response_alg": [
"RS256"
Expand Down
2 changes: 1 addition & 1 deletion oauth2/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@ func (h *Handler) discoverOidcConfiguration(w http.ResponseWriter, r *http.Reque
IDTokenSigningAlgValuesSupported: []string{key.Algorithm},
IDTokenSignedResponseAlg: []string{key.Algorithm},
UserinfoSignedResponseAlg: []string{key.Algorithm},
GrantTypesSupported: []string{"authorization_code", "implicit", "client_credentials", "refresh_token"},
GrantTypesSupported: []string{"authorization_code", "implicit", "client_credentials", "refresh_token", "urn:ietf:params:oauth:grant-type:device_code"},
ResponseModesSupported: []string{"query", "fragment"},
UserinfoSigningAlgValuesSupported: []string{"none", key.Algorithm},
RequestParameterSupported: true,
Expand Down

0 comments on commit 41a3eca

Please sign in to comment.