mirror of https://github.com/golang-jwt/jwt.git
Fixes jwt command to support EdDSA algorithm (#118)
Fixes ``` $ echo '{"foo":"bar"}' | jwt -key test/ed25519-private.pem -alg EdDSA -sign - Error: error signing token: key is of invalid type ``` Signed-off-by: Alexander Yastrebov <yastrebov.alex@gmail.com>
This commit is contained in:
parent
a2aa655627
commit
9c3665f0fc
|
@ -293,7 +293,7 @@ func isRs() bool {
|
|||
}
|
||||
|
||||
func isEd() bool {
|
||||
return strings.HasPrefix(strings.ToUpper(*flagAlg), "Ed")
|
||||
return *flagAlg == "EdDSA"
|
||||
}
|
||||
|
||||
type ArgList map[string]string
|
||||
|
|
Loading…
Reference in New Issue