make run.local
grpcurl --plaintext -d '{"userId": "12345"}' localhost:8080 boutit.auth.api.AuthService/CreateToken
grpcurl --plaintext -d '{"token": ADD_TOKEN_HERE}' localhost:8080 boutit.auth.api.AuthService/ValidateToken
NOTE: curl must be done through the api-gateway
Create Token curl -X POST -k http://localhost:8090/v1/auth/create_token -d '{"userId": "ey295-asdgjsg-asdgljkas-33dll", "roles": []}'
Validate TOken grpcurl --plaintext -d '{"token": "[INSERT_TOKEN]"}' localhost:8080 boutit.auth.api.AuthService/ValidateToken
- Navigate to this website, select 4096 bit and click "Generate New Keys": https://travistidwell.com/jsencrypt/demo/
- Copy private key, navigate to this website, paste into textarea and click encode: https://www.base64encode.org/
- Copy base64 encoded result to config file
- Navigate back to step 2 and repeat steps 2 & 3 for the public key