add default signature algorithm

This commit is contained in:
minami.yoshihiko 2024-05-07 19:12:12 +09:00
parent 6d1231cb37
commit 46ecf9a778

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
}