Please summarize your feature request
Automatic key rotation
Describe the functionality you're seeking in more detail
I am in the process of upgrading my authentication service to use JWTs and I came to the decision that I want to rotate the signing keys periodically (as opposed to creating a new one at every app start, or creating one at first start and writing it to a file then reusing that same one forever). I think this logic could be implemented inside JWTKit as this is a pretty common use case. It would have parameters for the location of the folder to store the persisted files in, frequency of rotation, number of older public keys to keep for verification, algorithm to use for the key. It should be able to handle changes to the algorithm (as in when the app is updated and this key rotation is initialized again, we would create a new key immediately and continue to verify JWTs with the previous keys).
Have you considered any alternatives?
Implementing in the app using JWTKit.
Please summarize your feature request
Automatic key rotation
Describe the functionality you're seeking in more detail
I am in the process of upgrading my authentication service to use JWTs and I came to the decision that I want to rotate the signing keys periodically (as opposed to creating a new one at every app start, or creating one at first start and writing it to a file then reusing that same one forever). I think this logic could be implemented inside JWTKit as this is a pretty common use case. It would have parameters for the location of the folder to store the persisted files in, frequency of rotation, number of older public keys to keep for verification, algorithm to use for the key. It should be able to handle changes to the algorithm (as in when the app is updated and this key rotation is initialized again, we would create a new key immediately and continue to verify JWTs with the previous keys).
Have you considered any alternatives?
Implementing in the app using JWTKit.