uomosul/uom-id-package-laravel

v0.0.3 2023-09-23 11:57 UTC

README

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

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 in app/Http/Middleware/EncryptCookies.php
protected $except = [
    'UOM_ID_SESSION',
];
  • Change driver to uom in config/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.