Skip to content

spring-boot-starter-jwks dependency that automatically adds the jwks endpoint to a Spring Boot application

License

Notifications You must be signed in to change notification settings

Koppeltaal/Koppeltaal-2.0-Spring-JWKS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Koppeltaal-2.0-Spring-JWKS

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

properties

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

Adding this dependency to other projects

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>

About

spring-boot-starter-jwks dependency that automatically adds the jwks endpoint to a Spring Boot application

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages