I'm using OpenIddict in my web app and have just replaced
.AddEphemeralSigningKey()
with
.AddSigningCertificate("my thumbprint")
I now want to confirm that the new certificate is in fact being used, but when I submit an access_token that was created whilst using the old (ephemeral) key, it is accepted with no problem. I would expect it to be refused, now that the web app is using a different signing key!
Or, am I misunderstanding the purpose of the signing key?
I found this post that indicates the signing key is not used to sign access tokens created when using the ASP.Net Core Data Protection Stack, which I believe fits my scenario, as I am not using JWT tokens or customising the token format.
In this case, what is the signing key used for and/or why is it required?