diff --git a/credentials/verifier_default.go b/credentials/verifier_default.go index 27a2c1208..b16737dec 100644 --- a/credentials/verifier_default.go +++ b/credentials/verifier_default.go @@ -6,6 +6,7 @@ package credentials import ( "context" "crypto/ecdsa" + "crypto/ed25519" "crypto/rsa" "fmt" "strings" @@ -69,6 +70,10 @@ func (v *VerifierDefault) Verify( if k, ok := key.Key.(*ecdsa.PublicKey); ok { return k, nil } + case *jwt.SigningMethodEd25519: + if k, ok := key.Key.(ed25519.PublicKey); ok { + return k, nil + } case *jwt.SigningMethodRSAPSS: if k, ok := key.Key.(*rsa.PublicKey); ok { return k, nil