Download the PHP package digitaldream/symfony-access-token without Composer
On this page you can find all versions of the php package digitaldream/symfony-access-token. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download digitaldream/symfony-access-token
More information about digitaldream/symfony-access-token
Files in digitaldream/symfony-access-token
Package symfony-access-token
Short Description Symfony Access Token Authentication Bundle.
License MIT
Homepage https://github.com/digitaldreams/symfony-access-token-bundle
Informations about the package symfony-access-token
Symfony Access Token Bundle
Installation
Setup
Step 1:
copy config/packages/access_token.yaml
from vendor folder
Step 2:
Copy config/routes/access_token.yaml
from vendor folder
Step 3
Add these environment variables to your .env file
Step 4
Calling the Login API
You can create your own login route. Just remove package route and use AccessToken\Services\CreateAccessTokenService
Enjoy!!!
Implement User verification and active feature
It will never generate a access token is user need to be email verified or inactive.
Simply implement the AccessToken\Entity\TokenUserInterface
on your User
Entity like below
Revoke Access Token
If you want to revoke all of the access token for a particular user then fire AccessToken\Events\RevokeAccessTokensEvent
All versions of symfony-access-token with dependencies
symfony/framework-bundle Version 6.3.*
symfony/security-bundle Version 6.3.*
firebase/php-jwt Version ^6.9