'Micronaut Security - Set PublicKey for RSASignatureConfiguration
All the examples of how to validate a JWT token that I found in micronaut are using a "secret". They do it this way:
micronaut:
security:
authentication: bearer
token:
jwt:
signatures:
secret:
generator:
secret: '"${JWT_GENERATOR_SIGNATURE_SECRET:pleaseChangeThisSecretForANewOne}"'
My question is: what are the properties I have to set when using private key/public key?
NOTE: in my case I only need to verify the token. Not generate it.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|