A Worksome provider for Laravel Socialite

v0.3.1 2024-02-23 10:09 UTC

This package is auto-updated.

Last update: 2024-05-23 10:42:31 UTC


Latest Version on Packagist Software License Build Status

A Worksome provider for Laravel Socialite


Via Composer

composer require worksome/socialite

Please see the Base Installation Guide, then follow the provider specific instructions below.

Add configuration to config/services.php

'worksome' => [
    'client_id' => env('WORKSOME_CLIENT_ID'),
    'client_secret' => env('WORKSOME_CLIENT_SECRET'),
    'redirect' => env('WORKSOME_REDIRECT_URI'),

    // Optional
    'auth_uri' => env('WORKSOME_AUTH_URI', ''),
    'auth_redirect_uri' => env('WORKSOME_AUTH_REDIRECT_URI', 'https://auth.worksome.test'),

Add provider event listener

Configure the package's listener to listen for SocialiteWasCalled events.

Add the event to your listen[] array in app/Providers/EventServiceProvider. See the Base Installation Guide for detailed instructions.

protected $listen = [
    \SocialiteProviders\Manager\SocialiteWasCalled::class => [
        // ... other providers


You should now be able to use the provider like you would regularly use Socialite (assuming you have the facade installed):

return Socialite::driver('worksome')->redirect();

Returned User fields

  • id: The id of the authenticated user
  • name: The name of the authenticated user
  • email: The email address of the authenticated user

Change log

Please see GitHub Releases for more information on what has changed recently.



The MIT License (MIT). Please see License File for more information.