Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/attla/authentic
- Owner: attla
- License: mit
- Created: 2022-07-18T02:11:03.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-12-11T17:27:13.000Z (about 2 months ago)
- Last Synced: 2024-12-11T18:32:09.312Z (about 2 months ago)
- Topics: auth, authn, authz, serverless, sso, stateful, stateless
- Language: PHP
- Homepage:
- Size: 36.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Authentic stateless user layer
🆔 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).