https://github.com/breathbath/oauth-test
Testing JWT token generation with github.com/ory/fosite
https://github.com/breathbath/oauth-test
Last synced: 2 months ago
JSON representation
Testing JWT token generation with github.com/ory/fosite
- Host: GitHub
- URL: https://github.com/breathbath/oauth-test
- Owner: breathbath
- Created: 2021-03-03T16:18:10.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2021-03-03T21:55:04.000Z (about 4 years ago)
- Last Synced: 2024-06-20T15:02:50.001Z (11 months ago)
- Language: Go
- Size: 50.8 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-ory - Testing OAuth 2.0 JWT token implementation with Ory Fosite
- awesome-ory - Testing OAuth 2.0 JWT token implementation with Ory Fosite
README
# Library for testing oauth implementation with JWT tokens
## How to run it in Docker
docker build -t oauth-test -f docker/Dockerfile .
docker run -it -p 8000:8000 oauth## How to generate a JWT token with curl
curl -XPOST 127.0.0.1:8000/token --header 'content-type: application/x-www-form-urlencoded' --data grant_type=client_credentials -u admin:foobar -d scope=fosite -d audience=admins
## How to get private and public keys
Just watch to the console output when the library is started
## Hot to verify the access token
- Copy the `access_token` value from the curl command mentioned above
- Go to https://jwt.io/
- Copy public key and see if "Signature Verified" is shown## To deploy in K8s
kubectl apply -f deployments/k8s