Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

philippsalesy's avatar

Socialite Monday driver is not working

Socialite Version: 5.5.5 Socialiteproviders/monday: 5.0.0 Laravel Version: 8.83.16 PHP Version: 8.1.3 Database Driver & Version:

Description:

I am having an issue with the implementation of the socialite driver. I have followed the installation and usage steps as follows below. It throws me the following error when i try to access /auth/monday: Call to undefined method SocialiteProviders\Monday\Provider::additionalConfigKeys()

Stack Trace:

SocialiteProviders\Manager\SocialiteWasCalled::getConfig vendor/socialiteproviders/manager/src/SocialiteWasCalled.php :141

protected function getConfig(string $providerClass, string $providerName)

{

    return $this->configRetriever->fromServices(

        $providerName, $providerClass::additionalConfigKeys()

    );

}

Code

EventServiceProviders.php

protected $listen = [
        //Socialite OAuth driver
        \SocialiteProviders\Manager\SocialiteWasCalled::class => [
            'SocialiteProviders\SalesForce\SalesForceExtendSocialite@handle',
            'SocialiteProviders\Monday\MondayExtendSocialite@handle',        

        ],
    ];

config/app.php

Route::get('/auth/monday', [AuthenticatedSessionController::class, 'redirectToMonday']);
Route::get('/auth/monday/callback', [AuthenticatedSessionController::class, 'handleMondayCallback']);

config/services.php

'monday' => [    
        'client_id' => env('MONDAY_CLIENT_ID'),  
        'client_secret' => env('MONDAY_CLIENT_SECRET'),  
        'redirect' => env('MONDAY_REDIRECT_URI') 
      ],

AuthenticatedSessionController.php

public function redirectToMonday ()
    {
        return Socialite::driver('monday')->redirect();
    }

    public function handleMondayCallback () 
{
            return redirect('/dashboard');
}
0 likes
2 replies
philippsalesy's avatar

The the MondayExtendSocialite extends AbstractProvider class. I have checked both classes, neither of them have a method called additionalConfigKeys(). May the problem be caused by a version conflict? Interestingly, OAUTH using "salesforce" instead of "monday" works perfectly fine.

philippsalesy's avatar

The monday/provider.php uses the wrong AbstractProvider class. Delete use Laravel\Socialite\Two\AbstractProvider; and add use SocialiteProviders\Manager\OAuth2\AbstractProvider; at the beginning of the file.

Please or to participate in this conversation.