Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/attla/authentic

🆔 An effective stateless user authentication and authorization layer
https://github.com/attla/authentic

auth authn authz serverless sso stateful stateless

Last synced: 18 days ago
JSON representation

🆔 An effective stateless user authentication and authorization layer

Awesome Lists containing this project

README

        

# Authentic stateless user layer


License
Latest Stable Version
Total Downloads

🆔 An effective serverless user authentication and authorization layer.

## Installation

```bash
composer require attla/authentic
```

## Configuration

In `./config/auth.php` on `guards` add the following array:

```php
'guards' => [
// ...

'authentic' => [
'driver' => 'authentic',
'provider' => 'users',
],
],
```

If you want to configure the authentic as your default authentication guard set on `defaults.guard` as:

```php
'defaults' => [
'guard' => 'authentic',
// ...
],
```

Your model needs implements `Authenticatable` contract:

```php
use Illuminate\Contracts\Auth\Authenticatable;

class Example implements Authenticatable
{
// ...
}
```

## Providers

Also in `./config/auth.php` on `guards` add the following array:

```php
'providers' => [
// ...

'dynamodb' => [
'driver' => 'dynamodb',
'model' => Model::class,
// 'gsi' => '',
],
],
```

## License

This package is licensed under the [MIT license](LICENSE) © [Zunq](https://zunq.com).