SocialiteProviders / Providers

A Collection of Providers for Laravel Socialite
https://socialiteproviders.com
MIT License
487 stars 435 forks source link

Microsoft-azure laravel 11 support #1182

Closed fabiendeloye closed 2 months ago

fabiendeloye commented 3 months ago

I try to add Microsoft Azure to my fresh Laravel 11 installation, but It's not working... It's compatible with laravel 11 ?

I have this error : SocialiteProviders\Azure\AzureExtendSocialite does not extend Laravel\Socialite\Two\AbstractProvider

Thanks

KenGuggelmeyer commented 3 months ago

Same problem here but with the Microsoft provider.

I modified the AppServiceProvider with the following:

Event::listen(function (\SocialiteProviders\Manager\SocialiteWasCalled $event) { $event->extendSocialite('microsoft', \SocialiteProviders\Microsoft\MicrosoftExtendSocialite::class,); });

and I'm receiving the following:

SocialiteProviders\Microsoft\MicrosoftExtendSocialite does not extend Laravel\Socialite\Two\AbstractProvider

NickArcher commented 3 months ago

I try to add Microsoft Azure to my fresh Laravel 11 installation, but It's not working... It's compatible with laravel 11 ?

I have this error : SocialiteProviders\Azure\AzureExtendSocialite does not extend Laravel\Socialite\Two\AbstractProvider

Thanks

Try this:

In AppServiceProvider.php

Event::listen(function (\SocialiteProviders\Manager\SocialiteWasCalled $event) {
$event->extendSocialite('microsoft', \SocialiteProviders\Microsoft\Provider::class,);
});

and then

php artisan cache:clear
KenGuggelmeyer commented 3 months ago

That fixed it for me!

atymic commented 3 months ago

Docs added for all providers :)

fabiendeloye commented 3 months ago

Thanks it's fixed for me too :)