upgrade github.com/go-jose/go-jose and github.com/coreos/go-oidc

Also standardize some related imports and fix some whitespace in a test
This commit is contained in:
Ryan Richard
2024-06-20 12:52:27 -07:00
parent 10699314d4
commit 0380a9ce33
25 changed files with 301 additions and 142 deletions

View File

@@ -17,7 +17,7 @@ import (
"unsafe"
coreosoidc "github.com/coreos/go-oidc/v3/oidc"
"github.com/go-jose/go-jose/v3"
"github.com/go-jose/go-jose/v4"
"github.com/stretchr/testify/require"
"go.uber.org/mock/gomock"
"golang.org/x/oauth2"
@@ -1413,7 +1413,7 @@ func mockVerifier() *coreosoidc.IDTokenVerifier {
mockKeySet.EXPECT().VerifySignature(gomock.Any(), gomock.Any()).
AnyTimes().
DoAndReturn(func(ctx context.Context, jwt string) ([]byte, error) {
jws, err := jose.ParseSigned(jwt)
jws, err := jose.ParseSigned(jwt, []jose.SignatureAlgorithm{jose.ES256, jose.RS256})
if err != nil {
return nil, err
}