looxis / libreworkspace-socialite-provider
A laravel socialite provider for libreworkspace
Installs: 13
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Open Issues: 0
pkg:composer/looxis/libreworkspace-socialite-provider
Requires
- php: ^8.0
- ext-json: *
- socialiteproviders/manager: ^4.4
README
A laravel socialite provider for libreworkspace
composer require looxis/libreworkspace-socialite-provider
Installation & Basic Usage
Please see the Base Installation Guide, then follow the provider specific instructions below.
Configure settings in .env
LIBREWORKSPACE_PROVIDER_URL=https://portal.yourdomain.com
LIBREWORKSPACE_CLIENT_ID=XXXXXX
LIBREWORKSPACE_CLIENT_SECRET=YYYYYYYYYYYYYYYYYY
LIBREWORKSPACE_REDIRECT_URI=http://yourapp.com/auth/libreworkspace/callback
LIBREWORKSPACE_GROUP=yourapp
LIBREWORKSPACE_SCOPES="openid profile email groups"
with group you can define the group a user must have in the Libreworkspace, otherwise it will throw a 403
with scopes you can define the scopes the openID response should include
Usage
You should now be able to use the provider:
return Socialite::driver('libreworkspace')->redirect();
To redirect to the authentication, and then:
$user = Socialite::driver('libreworkspace')->user()
Versioning
0.x– legacy versions including auth routes and controllers (deprecated)1.0+– pure Socialite provider without routes or login logic