catlabinteractive / laravel-catlab-accounts
Oauth-Openid client for the catlab authentication api for Ll
Package info
github.com/CatLabInteractive/laravel-catlab-accounts
pkg:composer/catlabinteractive/laravel-catlab-accounts
v4.3.0
2026-08-29 17:45 UTC
Requires
- php: >=8.1
- socialiteproviders/manager: ^4.8
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-08-29 17:47:01 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
],
];
Configuration
config/services.php reads these environment variables:
CATLAB_API: base url of the accounts server (defaulthttps://accounts.catlab.eu/).CATLAB_CLIENT_ID/CATLAB_CLIENT_SECRET: the product's OAuth2 client credentials. Required. Besides the login flow they authenticate the product-level API calls inApiClient(createOrder,sendEmail,getOrder), which use HTTP Basicclient_id:client_secretinstead of the user's access token. Accounts does not accept a user token on those routes, soApiClientthrows aLogicExceptionwhen they are missing.