Skip to content

Commit

Permalink
Add comment in test re: key algorithm inference
Browse files Browse the repository at this point in the history
  • Loading branch information
erik-h committed Apr 15, 2024
1 parent a44ea63 commit 75caf08
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/authz/oidc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,9 @@ func TestOIDCProcess(t *testing.T) {

unknownJWKPriv, _ := newKeyPair(t)
jwkPriv, jwkPub := newKeyPair(t)
// We remove the optional "alg" field from this key to test that we can
// properly validate against them. Some providers (e.g. Microsoft Identity)
// exclude the "alg" field from their keys.
noAlgJwkPriv, noAlgJwkPub := newKeyPair(t)
err := noAlgJwkPriv.Set(jwk.KeyIDKey, noAlgKeyID)
require.NoError(t, err)
Expand Down

0 comments on commit 75caf08

Please sign in to comment.