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

Driver [apple] not supported #1235

Open
awaegel-rm opened this issue Jul 10, 2024 · 1 comment
Open

Driver [apple] not supported #1235

awaegel-rm opened this issue Jul 10, 2024 · 1 comment

Comments

@awaegel-rm
Copy link

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
Copy link
Author

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

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

1 participant