Skip to content

Commit d4c6454

Browse files
committed
Allow ES256 local signer rotation
- Treat ES256 as a supported local rotation algorithm - Keep unsupported algorithms on the default path
1 parent 34df417 commit d4c6454

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

server/signer/rotation.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ func rotationStrategyForAlgorithm(rotationFrequency, idTokenValidFor time.Durati
4646
idTokenValidFor: idTokenValidFor,
4747
algorithm: algorithm,
4848
}
49-
switch algorithm {
49+
// Only RS256 and ES256 are supported for local key rotation; all other algorithms are handled by the default case.
50+
switch algorithm { //nolint:exhaustive
5051
case jose.RS256:
5152
strategy.key = func() (crypto.Signer, error) {
5253
return rsa.GenerateKey(rand.Reader, 2048)

0 commit comments

Comments
 (0)