PHP OpenSwoole HTTP Server - API Part 2 - JWT Authorization

1 year ago
15

9 minutes of PHP OpenSwoole HTTP Server - API Part 2 - JWT Authorization

At this second part we will create an authorization layer for our API using JWT standard.

Source: https://github.com/lotharthesavior/sample-swoole/tree/42fd2fd1528016179c33f0ee76065fbc1b6e90e1

Previous part: https://youtu.be/1u5Gv-CkNzY

- Part 1: Refactor for our Commands Structure
- Part 2: JWT Authorization (https://youtu.be/O8EVJrKtbGg?t=573)

Packages added here:

- firebase/php-jwt (https://github.com/firebase/php-jwt)

References:

Symfony Console: https://symfony.com/doc/current/components/console.html
JWT RFC (7519): https://datatracker.ietf.org/doc/html/rfc7519

Loading comments...