https://github.com/amnuts/jwt-testing
Testing out using JWT
https://github.com/amnuts/jwt-testing
Last synced: over 1 year ago
JSON representation
Testing out using JWT
- Host: GitHub
- URL: https://github.com/amnuts/jwt-testing
- Owner: amnuts
- Created: 2017-09-28T22:28:34.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-09-29T18:44:53.000Z (almost 9 years ago)
- Last Synced: 2025-01-29T21:54:34.855Z (over 1 year ago)
- Language: PHP
- Size: 8.79 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### Getting started
You'll need to fire up three different web servers, which you can do with:
```
php -S localhost:9001 index.php
php -S localhost:9002 auth.php
php -S localhost:9003 ws.php
```
Then just access http://localhost:9001 to test it out.
If you want to use different servers or ports, change the `config.php` file so that it matches where you have located the three different services.
### To generate keys
If you want to generate new keys, run these commands:
```
openssl genrsa -out jwt-key 2048
openssl rsa -in jwt-key -pubout > jwt-key.pub
```