This is just an example for authorization server that provides api to get access key (JWT)
Currenlty, it is for client based authorization.
Client can have roles.
Client make request to get access token (JWT)
Currently, you need to put users into users.json
.
Please pay attention that you have to use PasswordUtils
to encode password for the user.
Please use next commands to generate them:
openssl genrsa -out rsa.private.key 4096
openssl rsa -in rsa.private.key -out rsa.public.key -pubout -outform PEM
Current RSA are commited to repo, so THEY SHOULD NOT BE USED ON PROD, please generate new ones.