Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Microsoft-Azure not working #217

Open
ArminIR opened this issue May 11, 2023 · 5 comments
Open

Microsoft-Azure not working #217

ArminIR opened this issue May 11, 2023 · 5 comments

Comments

@ArminIR
Copy link

ArminIR commented May 11, 2023

Issue / Motivation:

provider listeners not being called

Expected behavior:

return Socialite::driver('azure')->redirect(); this should redirect to the provider's login page

Actual behavior:

Target class [SocialiteProviders\Azure\AzureExtendsSocialite] does not exist.

Steps to reproduce the behavior:

i followed the steps in this link: https://packagist.org/packages/socialiteproviders/microsoft-azure
i am using laravel 10.10.0 and php 8.2.0

Proposed solution:

that the target class can be found and exist

@lrljoe
Copy link

lrljoe commented Jul 2, 2023

You still having an issue with this?

@olinorwell
Copy link

olinorwell commented Sep 13, 2023

[EDIT - It's now fine for me, took a few hours of trying every possible combination but can confirm it does indeed work now]

I have been having the same issue. I have followed every tutorial out there and the official instructions. I'm on the latest Laravel 10.21 PHP 8.2.

Driver [azure] not supported.

Is the error I get when trying to send them to get auth'd.

@atymic
Copy link
Member

atymic commented Sep 13, 2023

Can you please create a reproduction repo and link it here?
Thanks

@olinorwell
Copy link

olinorwell commented Sep 13, 2023

Just a few minutes ago I was able to get it to work. So I will update my post.

It's hard to completely put a finger on what made the difference unfortunately. Right now it's working and I have it at the top of my 'providers' list in app.php, that's possibly what fixed it, not sure though.

In EventServiceProvider.php I have:

   protected $listen = [
    \SocialiteProviders\Manager\SocialiteWasCalled::class => [
        'SocialiteProviders\\Azure\\AzureExtendSocialite@handle',
    ], 
  

@atymic
Copy link
Member

atymic commented Sep 13, 2023

Do you know what changed? Could you try swapping it back down? If there's an issue putting it below another provider it would be good to determine that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants