Skip to content

Commit

Permalink
fixed expected error messages (according to replaced JWT library)
Browse files Browse the repository at this point in the history
  • Loading branch information
Johannes Koch committed Nov 4, 2022
1 parent a893345 commit bc574ae
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions server/http_oauth2_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -725,7 +725,7 @@ definitions {
}
}
`,
"configuration error: be: invalid Key: Key must be PEM encoded PKCS1 or PKCS8 private key",
"configuration error: be: invalid key: Key must be a PEM encoded PKCS1 or PKCS8 key",
},

{
Expand Down Expand Up @@ -868,7 +868,7 @@ func TestOAuth2_AuthnJWT(t *testing.T) {
"client_secret_jwt error",
"/csj_error",
http.StatusBadGateway,
"access control error: csj_error: token signature is invalid",
"access control error: csj_error: signature is invalid",
},
{
"private_key_jwt",
Expand All @@ -880,7 +880,7 @@ func TestOAuth2_AuthnJWT(t *testing.T) {
"private_key_jwt error",
"/pkj_error",
http.StatusBadGateway,
"access control error: pkj_error: token is unverifiable: signing method RS256 is invalid",
"access control error: pkj_error: signing method RS256 is invalid",
},
} {
t.Run(tc.name, func(subT *testing.T) {
Expand Down

0 comments on commit bc574ae

Please sign in to comment.