Просмотр исходного кода

Change OIDC signature algorithm to `RS256` to match JWT

In https://github.com/coreos/go-oidc/compare/v3.14.1...v3.15.0, the
JWT signature algorithm verification is moved earlier into the
process, resulting in our existing test failing. The JWT has
algorithm `RS256` set, whereas the verifier had `ES256`. It needs
to have `RS256` to validate the token.
Herman Slatman 1 год назад
Родитель
Сommit
2bb1896db3
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      acme/challenge_wire_test.go

+ 1 - 1
acme/challenge_wire_test.go

@@ -2207,7 +2207,7 @@ MCowBQYDK2VwAyEA5c+4NKZSNQcR1T8qN6SjwgdPZQ0Ge12Ylx/YeGAJ35k=
 			},
 			Config: &wireprovisioner.Config{
 				ClientID:            "wireapp",
-				SignatureAlgorithms: []string{"ES256"},
+				SignatureAlgorithms: []string{"RS256"},
 				Now: func() time.Time {
 					return time.Date(2024, 1, 12, 18, 32, 41, 0, time.UTC) // (Token Expiry: 2024-01-12 21:32:42 +0100 CET)
 				},