Skip to content

Commit

Permalink
fix encoding in test jwks server
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewpmartinez committed Sep 30, 2024
1 parent 3120aeb commit 4cc501e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/auth_external_jwt_signer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ func (js *jwksServer) handleJWKS(w http.ResponseWriter, _ *http.Request) {
var keys []jsonWebKey
for _, cert := range js.certificates {

certBase64 := base64.RawURLEncoding.EncodeToString(cert.Raw)
certBase64 := base64.StdEncoding.EncodeToString(cert.Raw)
key := jsonWebKey{
Kid: cert.Subject.CommonName,
X5C: []string{certBase64},
Expand Down

0 comments on commit 4cc501e

Please sign in to comment.