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.
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');
}
Please or to participate in this conversation.