Skip to content

Commit e5a065c

Browse files
committed
feat: support EdDSA signing algorithms
Fixes: #1191
1 parent 962d15b commit e5a065c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

credentials/verifier_default.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ package credentials
66
import (
77
"context"
88
"crypto/ecdsa"
9+
"crypto/ed25519"
910
"crypto/rsa"
1011
"fmt"
1112
"strings"
@@ -69,6 +70,10 @@ func (v *VerifierDefault) Verify(
6970
if k, ok := key.Key.(*ecdsa.PublicKey); ok {
7071
return k, nil
7172
}
73+
case *jwt.SigningMethodEd25519:
74+
if k, ok := key.Key.(ed25519.PublicKey); ok {
75+
return k, nil
76+
}
7277
case *jwt.SigningMethodRSAPSS:
7378
if k, ok := key.Key.(*rsa.PublicKey); ok {
7479
return k, nil

0 commit comments

Comments
 (0)