attla / authentic
An effective stateless user authentication and authorization layer.
dev-main
2024-12-11 17:27 UTC
Requires
- php: >=7.2.5
- attla/cookier: dev-main
- attla/core-design: dev-main
- attla/support: dev-main
- attla/token: dev-main
- illuminate/auth: ^6.0|^7.0|^8.0|^9.0|^10.0|^11.0
- illuminate/contracts: ^6.0|^7.0|^8.0|^9.0|^10.0|^11.0
- illuminate/cookie: ^6.0|^7.0|^8.0|^9.0|^10.0|^11.0
- illuminate/database: ^6.0|^7.0|^8.0|^9.0|^10.0|^11.0
- illuminate/events: ^6.0|^7.0|^8.0|^9.0|^10.0|^11.0
- illuminate/filesystem: ^6.0|^7.0|^8.0|^9.0|^10.0|^11.0
- illuminate/http: ^6.0|^7.0|^8.0|^9.0|^10.0|^11.0
- illuminate/support: ^6.0|^7.0|^8.0|^9.0|^10.0|^11.0
- illuminate/validation: ^6.0|^7.0|^8.0|^9.0|^10.0|^11.0
This package is auto-updated.
Last update: 2024-12-11 17:27:16 UTC
README
🆔 An effective serverless user authentication and authorization layer.
Installation
composer require attla/authentic
Configuration
In ./config/auth.php
on guards
add the following array:
'guards' => [ // ... 'authentic' => [ 'driver' => 'authentic', 'provider' => 'users', ], ],
If you want to configure the authentic as your default authentication guard set on defaults.guard
as:
'defaults' => [ 'guard' => 'authentic', // ... ],
Your model needs implements Authenticatable
contract:
use Illuminate\Contracts\Auth\Authenticatable; class Example implements Authenticatable { // ... }
Providers
Also in ./config/auth.php
on guards
add the following array:
'providers' => [ // ... 'dynamodb' => [ 'driver' => 'dynamodb', 'model' => Model::class, // 'gsi' => '', ], ],
License
This package is licensed under the MIT license © Zunq.