uomosul / uom-id-package-laravel
UOM ID Authenticaiton Package
v0.0.3
2023-09-23 11:57 UTC
Requires
- php: ^8.1
- illuminate/contracts: ^10.0
- spatie/laravel-package-tools: ^1.14.0
Requires (Dev)
- laravel/pint: ^1.0
- nunomaduro/collision: ^7.9
- nunomaduro/larastan: ^2.0.1
- orchestra/testbench: ^8.0
- pestphp/pest: ^2.0
- pestphp/pest-plugin-arch: ^2.0
- pestphp/pest-plugin-laravel: ^2.0
- phpstan/extension-installer: ^1.1
- phpstan/phpstan-deprecation-rules: ^1.0
- phpstan/phpstan-phpunit: ^1.0
This package is not auto-updated.
Last update: 2024-05-04 14:49:26 UTC
README
This is where your description should go. Limit it to a paragraph or two. Consider adding a small example.
Installation
You can install the package via composer:
composer require uomosul/uom-id-package-laravel
You can publish the config file with:
php artisan vendor:publish --tag="uom-id-package-laravel-config"
You can publish the provider file with:
php artisan vendor:publish --tag="uom-id-package-laravel-provider"
Usage
- Define the following
// .env
# UOM ID
UOM_ID_SESSION_URL=http://127.0.0.1:4455/sessions/@me
UOM_ID_LOGIN_URL=http://127.0.0.1:4455/login
UOM_ID_LOGOUT_URL=http://127.0.0.1:4455/logout
SESSION_COOKIE=UOM_ID_META
- Add
UOM_ID_SESSION
to$except
array inapp/Http/Middleware/EncryptCookies.php
protected $except = [
'UOM_ID_SESSION',
];
- Change
driver
touom
inconfig/auth.php
()
'guards' => [
'web' => [
'driver' => 'uom',
// ...
],
]
- Register service provider in
config/app.php
'providers' => ServiceProvider::defaultProviders()->merge([
// ...
App\Providers\UomAuthServiceProvider::class
])->toArray(),
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.