Download the PHP package etsvthor/laravel-bifrost-bridge without Composer
On this page you can find all versions of the php package etsvthor/laravel-bifrost-bridge. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download etsvthor/laravel-bifrost-bridge
More information about etsvthor/laravel-bifrost-bridge
Files in etsvthor/laravel-bifrost-bridge
Package laravel-bifrost-bridge
Short Description Connect a laravel application with the Bifrost oauth2 server
License MIT
Homepage https://github.com/etsvthor/laravel-bifrost-bridge
Informations about the package laravel-bifrost-bridge
laravel-bifrost-bridge
Connect a laravel application with the Bifrost
Installation
First, install spatie/laravel-permission, follow their installation guide
You can then install the package via composer:
You can publish the config file of bifrost and the underlying spatie permissions config+migrations with:
- Ensure the
users
has aoauth_user_id
andemail_verified_at
column. - In the
User
model, castemail_verified_at
todatetime
and add theHasRoles
trait. - Please add
'webhooks/bifrost'
to the CSRF exceptions inApp\Http\Middleware\VerifyCsrfToken
class
Environment
Add the following to your .env
file and fill them in:
Configuration
In the configuration file, one can specify some thing about the user model, but have some sensible defaults
See config/bifrost.php for all options.
Make sure to seed all required roles, otherwise they will not sync
Resolvers
The User
and Role
model can be resolved using a custom resolver
CSRF
Don't forget to add 'webhooks/bifrost'
to the $except
array in App\Http\Middleware\VerifyCsrfToken.php
.
All versions of laravel-bifrost-bridge with dependencies
spatie/laravel-permission Version ^4.0 | ^5.0 | ^6.0
laravel/framework Version ^10.0 | ^11.0
laravel/socialite Version ^5.1
spatie/laravel-data Version ^4.0