![]() ![]() ![]() With the EventServiceProvider registered, just refer to the other answers here to configure events, the provider's service config and registering Socialite in app.php and you ought to be good to go. $app->register(App\Providers\EventServiceProvider::class) To remedy this problem, register the EventServiceProvider within your bootstrap/app.php setup: But, what if you want to use a different driver In our case we want to use AWS Cognito as an authentication provider. It supports authentication with Facebook, Twitter, LinkedIn, Google, GitHub, and Bitbucket. I'm on Lumen 5.8.2 and had been becoming increasingly frustrated getting Socialite with additional providers set up - all of my configuration in bootstrap/app.php and EventServiceProvider.php seemed correct (and was) until I realized that Lumen wasn't actually registering the EventServiceProvider itself. Laravel Socialite is an official Laravel package to authenticate with OAuth providers. The Lumen-specific documentation for additional providers doesn't appear to mention some gotchas (at least, for my version of Lumen) and Lumen needs a little extra configuration to work compared to Laravel. envĪdding an answer here because this question comes up while searching for the same error as it pertains to Lumen as well and I suspect others may run into the same issue that I did. add your listeners (aka providers) have added SocialiteProviders\Manager\ServiceProvider::class, to my providers array in app.php, I have added the Socialite facade ('Socialite' => Laravel\Socialite\Facades\Socialite::class,) to my aliases array also in app.php and have added the appropriate keys to my. \SocialiteProviders\Manager\SocialiteWasCalled::class => [ Here's my $listen from my EventServiceProvider: protected $listen = [ Return Socialite::with('twitch')->redirect() Return Socialite::driver('github')->redirect() ![]() $user = Socialite::driver('battlenet')->user() I have tried three different providers and I get the same result each time, what am I doing wrong? However I can use a provider that's already built in to Socialite, github for example works as expected. With every new socialite provider I add I get the error:įor example when adding socialiteproviders/twitch 3.0 I will get the error: ![]()
0 Comments
Leave a Reply. |