catlabinteractive/laravel-catlab-accounts

Oauth-Openid client for the catlab authentication api for Ll

v4.0.0 2022-03-29 10:10 UTC

This package is auto-updated.

Last update: 2024-10-29 05:52:58 UTC


README

Installation

  • Add to your app config providers:
   \CatLab\Accounts\Client\CatLabAccountsServiceProvider::class,
   \SocialiteProviders\Manager\ServiceProvider::class,
  • Add to aliases:
    'Socialite' => Laravel\Socialite\Facades\Socialite::class,
  • Add to your (web)routes:
\CatLab\Accounts\Client\Controllers\LoginController::setRoutes();
  • Add to EventServiceProvider
/**
 * The event listener mappings for the application.
 *
 * @var array
 */
protected $listen = [
    \SocialiteProviders\Manager\SocialiteWasCalled::class => [
        CatLabExtendSocialite::class
    ],
];