Skip to content

Commit

Permalink
Merge pull request #29 from canonical/IAM-1050
Browse files Browse the repository at this point in the history
fix: Add device code grant_type to oidc metadata
  • Loading branch information
nsklikas authored Sep 23, 2024
2 parents 327febe + b09f3b9 commit b886b87
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 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
2 changes: 1 addition & 1 deletion test/conformance/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ set -euxo pipefail
cd "$( dirname "${BASH_SOURCE[0]}" )/../.."

# shellcheck disable=SC2086
docker-compose -f quickstart.yml -f quickstart-postgres.yml -f test/conformance/docker-compose.yml up ${1:-} -d --force-recreate --build
docker compose -f quickstart.yml -f quickstart-postgres.yml -f test/conformance/docker-compose.yml up ${1:-} -d --force-recreate --build

0 comments on commit b886b87

Please sign in to comment.