Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/nobletsolutions/tokenbundle

JWT token bundle integration with symfony
https://github.com/nobletsolutions/tokenbundle

bundle jwt jwt-token php symfony symfony-bundle

Last synced: 4 days ago
JSON representation

JWT token bundle integration with symfony

Awesome Lists containing this project

README

        

Installation
============

```yaml
composer require ns/token-bundle
```

Edit AppKernel.php and add the bundle

```yaml
new NS\TokenBundle\NSTokenBundle(),
```

Edit app/config/config.yml

```yaml
ns_token:
generator:
id:
key:
issuer:
short_expiration: 3600
long_expiration: 2592000
signer: Lcobucci\JWT\Signer\Rsa\Sha256 #default
```
You can use your own signer by implementing the Lcobucci\JWT\Signer interface.