Releases: sfelix-martins/passport-multiauth
v7.0.0
v6.0.0
Added
- Added support to Laravel 6.x
- Added support to Laravel Passport ^8.0
v4.1.0
Changed
- Changed
PassportMultiauth::actingAs($user)
to return 201 instead of 200 to be equals Laravel Passport package: laravel/passport#979
v4.0.0
Added
- Added compatibility with Laravel 5.7
- Improved README instructions
- Added sample project
v3.0.0
Added
Adds an early protection in the AddCustomProvider
middleware by checking that the provider given in the request is registered in the auth configuration, if not it will throw an exception to block the request also if the request is missing the provider param it will block it.
v2.1.0
Added
-
Add new trait
SMartins\PassportMultiauth\HasMultiAuthApiTokens
that uses the Laravel Passport core traitLaravel\Passport\HasApiTokens
. The new trait override the methodscreateToken($name, $scopes = [])
andtokens()
to adapt to MultiAuthentication needs. -
Now to create
Personal Access Token
don't need add paramproviders
on request to route wrapped by middlewareSMartins\PassportMultiauth\Http\Middleware\AddCustomProvider
. Just call the methodcreateToken($name)
using the model instance that uses the new traitSMartins\PassportMultiauth\HasMultiAuthApiTokens
. -
The method
tokens()
now get just the related tokens with model calling.
v2.0.2
v2.0.1
Fixed
- Fixed handling empty guards passed to
MultiAuthenticate
middleware. The parent classAuthenticate
handle it.
v2.0.0
Changed
- Simplified way to use package.
To more details about how to upgrade from 1.0 to 2.0 follow the upgrade guide
v1.1.0
Added support to laravel/passport
6.0