Skip to content

attla/authentic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

29 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Authentic stateless user layer

License Latest Stable Version Total Downloads

๐Ÿ†” 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.

About

๐Ÿ†” An effective stateless user authentication and authorization layer

Topics

Resources

License

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages