feat: add default signature algorithms (#606)
This commit is contained in:
parent
7437309a42
commit
8a47532a8e
1 changed files with 1 additions and 1 deletions
|
@ -186,7 +186,7 @@ func toJoseSignatureAlgorithms(algorithms []string) []jose.SignatureAlgorithm {
|
||||||
out[i] = jose.SignatureAlgorithm(algorithms[i])
|
out[i] = jose.SignatureAlgorithm(algorithms[i])
|
||||||
}
|
}
|
||||||
if len(out) == 0 {
|
if len(out) == 0 {
|
||||||
out = append(out, jose.RS256)
|
out = append(out, jose.RS256, jose.ES256, jose.PS256)
|
||||||
}
|
}
|
||||||
return out
|
return out
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue