feat: add default signature algorithms (#606)

This commit is contained in:
minami yoshihiko 2024-05-17 19:17:54 +09:00 committed by GitHub
parent 7437309a42
commit 8a47532a8e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -186,7 +186,7 @@ func toJoseSignatureAlgorithms(algorithms []string) []jose.SignatureAlgorithm {
out[i] = jose.SignatureAlgorithm(algorithms[i])
}
if len(out) == 0 {
out = append(out, jose.RS256)
out = append(out, jose.RS256, jose.ES256, jose.PS256)
}
return out
}