https://github.com/eonx-com/rewards-jwt-v3-demo
https://github.com/eonx-com/rewards-jwt-v3-demo
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/eonx-com/rewards-jwt-v3-demo
- Owner: eonx-com
- Created: 2020-08-18T03:33:47.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2021-01-13T04:05:38.000Z (over 5 years ago)
- Last Synced: 2024-12-27T18:24:55.673Z (over 1 year ago)
- Language: PHP
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# JWT v3 Demo
## Intro
This is a simple demonstration of generating and logging in to EonX rewards using a JWT v3. This code is not production ready and is for testing purposes only.
## About
This code will create an AuthToken with random user data, it will then exchange the AuthToken for an AccessToken and redirect the browser to EonX Rewards.
## Prerequisites
- docker
## Gettting Started
```shell script
cp config.php.example config.php
docker build . -t jwt-v3-demo
```
update config.php with supplied credentials
```shell script
docker run -it --rm -v $(pwd)/config.php:/var/www/config.php -p 8080:8000 jwt-v3-demo
```
Visit `localhost:8080` in your favourite browser and click "Login".