According to the docs, IdentityServer uses an asymmetric key pair to sign and verify JWT. You can either use AddTemporarySigningCredential() in a configuration that creates a new RSA each time it starts, or use AddSigningCredential(..) with an RSA key or certificate.
The document mentions that the temporary version is useful for development situations, but it does not mean that this is a drawback when used in a production environment.
I have an aspnetcore web api in which clients authenticate using IdentityServer4. Currently, the system works great with temporarily assigning an attribute, but I'm wondering if there is any benefit in using another option.
Thanks,
identityserver4
cellik
source share