ory/fosite

DefaultSigner should support key rotation

mitar opened this issue · 0 comments

Preflight checklist

Ory Network Project

No response

Describe your problem

It looks to me like there is no simple way to rotate the keypair? DefaultSigner and its GetPrivateKey allows only one key to be returned?

Describe your ideal solution

I think DefaultSigner should also have a method like GetRotatedPrivateKeys which would be used only for validating. Similar to how there is GlobalSecret and RotatedGlobalSecrets.

Workarounds or alternatives

I could implement my own Signer but it would be better if this is part of fosite.

Version

v0.45.0

Additional Context

No response