DirectoryTree / Bartender

An opinionated way to authenticate users using Laravel Socialite.
MIT License
254 stars 9 forks source link

Driver not supported error while following the basic installation steps #4

Closed ssmusoke closed 7 months ago

ssmusoke commented 7 months ago

Repo - https://github.com/ssmusoke/microsoft

Error screen shot

Screenshot 2024-04-04 at 19 52 12

.env file configuration AZURE_CLIENT_ID=16d3a74a-xxxx-4114-0000-92c3026027b5 AZURE_CLIENT_SECRET="ABCDEF~kN8Xib7rSX5ImYb3-WHATEVERGOESHERE" AZURE_TENANT_ID=d2846d5f-9999-4de6-0000-6dac927610be AZURE_REDIRECT_URI="/auth/microsoft/callback"

stevebauman commented 7 months ago

Hi @ssmusoke,

When are you getting this? Is this a global exception (occurring when you attempt to load any page), or does this occur when you perform a specific action?

ssmusoke commented 7 months ago

I changed the login page to have the link using the redirect route, so when I click the link it throws the error

stevebauman commented 7 months ago

I see the issue, the EventServiceProvider hasn't been updated as shown in the Socialite Provider docs:

https://github.com/ssmusoke/microsoft/blob/1c4fabe4e75d8d8d087ff9a389bf72d0612fd5be/app/Providers/EventServiceProvider.php#L17-L21

https://socialiteproviders.com/Microsoft/#installation-basic-usage

protected $listen = [
    \SocialiteProviders\Manager\SocialiteWasCalled::class => [
        // ... other providers
        \SocialiteProviders\Microsoft\MicrosoftExtendSocialite::class.'@handle',
    ],
];

I'll update the Bartender docs to ensure it's clear to look at the Socialite Provider install instructions 👍

stevebauman commented 7 months ago

Ok I've added clarity to the installation steps! 👍