This is a spike project for configuring generic JWK token signing and validation based heavily on these two guides:
To run:
-
Start the signer
-
cd signer
-
To run with pre-configured JWK Keys
-
./gradlew run -Dmicronaut.environments=jwkkey
-
-
To run with an auto-generated key:
-
./gradlew run -Dmicronaut.environments=jwkauto
-
-
-
-
Start the checker
-
cd signer
-
./gradlew run
-
-
Get a token
-
http :8081/login username=test password=test
-
This uses HTTPie
-
-
-
Send token to checker
-
http :8080/token_info Authoization:"Bearer your.token.from.above"
-