spring-boot-starter-jwks dependency that automatically adds the jwks endpoint to a Spring Boot application
Simply add the dependency to your project, configure the jwt properties (generates keypair if not
configured), and verify that the endpoint has been added
at http://<HOST:PORT>/.well-known/jwks.json
The following properties can be configured
# Leave empty to get from request
jwks.aud=
# Leave empty to get from request
jwks.iss=
# Leave empty to auto generate
jwks.signingPublicKey=
# Leave empty to auto generate
jwks.signingPrivateKey=
jwks.signingAlgorithm=RSA512
This project writes the jar
to GitHub Packages.
In order to retrieve the jar, you'll need to have a GitHub server with
a Personal Access Token
(PAT) configured in your ~/.m2/settings.xml
. The PAT needs at least the read:packages
scope.
The <server>
tag should be added like this, replace the username and password:
<server>
<id>github</id>
<username>{{YOUR_GITHUB_USERNAME}}</username>
<password>{{YOUR_GITHUB_PERSONAL_ACCESS_TOKEN}}</password>
</server>