Providers icon indicating copy to clipboard operation
Providers copied to clipboard

Driver [apple] not supported

Open awaegel-rm opened this issue 1 year ago • 2 comments

I'm trying to get external authentication to work on my Laravel 10 website.

I've installed Laravel Socialite and got the built-in Google sign-in method to work without too much effort.

In order to get Apple sign-in to work, I've installed the Apple Socialite provider (https://socialiteproviders.com/Apple/) and followed all the configuration instructions, but when my controller tries to handle the Socialite redirect:

return Socialite::driver('apple')->redirect();

...I get the error:

Driver [apple] not supported.

Here's the in addition to the basic Socialite setup, here's the Apple-specific configuration I've done so far:

  • Added an apple section to config/services.php and added client_id, client_secret, and redirect to it
  • Added 'SocialiteProviders\Manager\ServiceProvider::class' to Providers array in config/app.php
  • Added this to the $listen array in app/Providers/EventServiceProvider.php:
\SocialiteProviders\Manager\SocialiteWasCalled::class => [
    \SocialiteProviders\Apple\AppleExtendSocialite::class.'@handle',
],

I've run php artisan config:cache and route:cache multiple times.

I know this is a simple mistake - anyone see this before and figured it out? Found some older similar posts but they didn't work for me.

Thanks!!

awaegel-rm avatar Jul 10 '24 16:07 awaegel-rm

'artisan event:clear' fixed this up - events were being cached which apparently kept changes to app/Providers/EventServiceProvider.php from being read.

awaegel-rm avatar Jul 10 '24 19:07 awaegel-rm

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Apr 26 '25 03:04 stale[bot]