SocialiteProviders / Providers

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

Microsoft-azure laravel 11 support #1182

Closed fabiendeloye closed 7 months ago

fabiendeloye commented 8 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 8 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 7 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 7 months ago

That fixed it for me!

atymic commented 7 months ago

Docs added for all providers :)

fabiendeloye commented 7 months ago

Thanks it's fixed for me too :)