Package Data | |
---|---|
Maintainer Username: | bootoffav |
Maintainer Contact: | bootoffav@gmail.com (Aleksei Butov) |
Package Create Date: | 2017-01-17 |
Package Last Update: | 2018-03-28 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2025-04-28 15:13:13 |
Package Statistics | |
---|---|
Total Downloads: | 55 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 0 |
Total Watchers: | 1 |
Total Forks: | 1 |
Total Open Issues: | 0 |
This is middleware for lavarel that ensures the user has bitrix24 authorization token with every request he/she sends to application.
#Installation step1 You need to provide hostname, client and secret within your .env file. B24_HOSTNAME=https://[yourhostname].bitrix24.ru B24_CLIENT_ID= B24_CLIENT_SECRET=
step 2 Add Middleware to your app/Http/Kernel.php at middlewareGroups array for 'web' \bootoffav\laravel\B24\Auth::class
#Usage
B24 credentials are stored at session, and accessible through either $request object or global session() helper function