Upgrade project dependencies to latest

- Upgrade Go used in CI from 1.19.0 to 1.19.1
- Upgrade all go.mod direct dependencies to latest available versions
- Upgrade distroless base image to latest available version
- Upgrade Go fips compiler to to latest available version

Note that upgrading the go-oidc library changed an error message
returned by that library, so update the places where tests were
expecting that error message.
This commit is contained in:
Ryan Richard
2022-09-23 14:41:54 -07:00
parent eb62f04f21
commit bad95c072e
6 changed files with 72 additions and 73 deletions
+3 -3
View File
@@ -175,7 +175,7 @@ func TestProviderConfig(t *testing.T) {
{
name: "invalid ID token",
returnIDTok: "invalid-jwt",
wantErr: "received invalid ID token: oidc: malformed jwt: square/go-jose: compact JWS format must have three parts",
wantErr: "received invalid ID token: oidc: malformed jwt: oidc: malformed jwt, expected 3 parts got 1",
},
{
name: "invalid access token hash",
@@ -1004,7 +1004,7 @@ func TestProviderConfig(t *testing.T) {
requireIDToken: true,
rawClaims: []byte(`{"userinfo_endpoint": "not-empty"}`),
userInfo: forceUserInfoWithClaims("some-other-subject", `{"name": "Pinny TheSeal", "sub": "some-other-subject"}`),
wantErr: "received invalid ID token: oidc: malformed jwt: square/go-jose: compact JWS format must have three parts",
wantErr: "received invalid ID token: oidc: malformed jwt: oidc: malformed jwt, expected 3 parts got 1",
},
{
name: "invalid nonce",
@@ -1141,7 +1141,7 @@ func TestProviderConfig(t *testing.T) {
name: "invalid ID token",
authCode: "valid",
returnIDTok: "invalid-jwt",
wantErr: "received invalid ID token: oidc: malformed jwt: square/go-jose: compact JWS format must have three parts",
wantErr: "received invalid ID token: oidc: malformed jwt: oidc: malformed jwt, expected 3 parts got 1",
},
{
name: "invalid access token hash",