An open API service indexing awesome lists of open source software.

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

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
```