ns / token-bundle
This bundle provides a JWT token integration with symfony
Installs: 10 012
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 2
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: ^7.4||^8.0
- ext-json: *
- codercat/jwk-to-pem: ^1.1
- lcobucci/jwt: ^4.0
- symfony/framework-bundle: ^5.0|^6.0
- symfony/http-client: ^5.0|^6.0
- twig/twig: ^2.0|^3.0
Requires (Dev)
- liip/rmt: ^1.7
- phpunit/phpunit: ^9.0
- rector/rector: ^0.12.16
This package is auto-updated.
Last update: 2025-01-19 05:26:41 UTC
README
composer require ns/token-bundle
Edit AppKernel.php and add the bundle
new NS\TokenBundle\NSTokenBundle(),
Edit app/config/config.yml
ns_token: generator: id: <some random string> key: <another random string> issuer: <string (often the site source)> 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.