Questions tagged [laravel-socialite]

Socialite is a package that provides a simple, convenient way to authenticate with OAuth providers within the Laravel framework.

For Laravel 5.6 this link will help to integrate third party platforms like facebook, twitter, linkedin, google, github or bitbucket

To integrate other platforms like Instagram, LinkedIn , Medium , this link is very beneficial.

606 questions
0
votes
0 answers

Socilite is not working in production laravel 5/ 5.4

I am using socialite in my project. it is working fine in local environment but when i have switched to production environment it is not working anymore. Sign in with google redirects me back again to "sign in " page of google. i have updated the…
Ahmed Nawaz Khan
  • 1,451
  • 3
  • 20
  • 42
0
votes
0 answers

Laravel Socialite Providers Manager hasInvalidState

am using login with MIcrosoft Graph (Socialite Providers) but when I call $user = Socialite::with('graph')->user(); It appear this exception: exception 'Laravel\Socialite\Two\InvalidStateException' in…
kripa
  • 141
  • 1
  • 5
0
votes
1 answer

Laravel facebook login using socialite

Please check the website here egypt-pets.com/login click on the facebook login and check the error page. My routes Route::get('login/facebook', 'Auth\LoginController@redirectToProvider'); Route::get('login/facebook/callback{token}',…
Doe
  • 33
  • 7
0
votes
1 answer

redirect()->intended('/login') not working laravel

I'm using a custom SocialLoginController to log my users with facebook or google in al Laravel 5.3 project In some cases I send to users an email with info about one change and the URL to the resource, for example…
user3088220
0
votes
1 answer

Laravel 5.2 + Socialite + Update Status

Well, for quite some time now, i've been doing some research on which plugin to use in Laravel 5.2 for the purpose of authenticating users in my website via their social networks accounts. I wanted to use Hybridauth, but it is not compatible with…
0
votes
1 answer

Socialite registration (Laravel 5.4)

I'm making a Laravel 5.4 project where I want users to select a school (which they will be assigned to) before they register and the user is created. My problem is that a google login is the main login method of the application and the user creation…
Kris D. J.
  • 612
  • 2
  • 7
  • 16
0
votes
1 answer

Laravel : Overwrite Socialite Provider to add new fields

I want to extend/overwrite my LinkedInProvider.php (in vendor\laravel\socialite\src\Two) to add new fields in the Linkedin Request. I've create a new LinkedInProvider.php (in app\Providers) with the following code : namespace App\Providers; use…
Kaherdin
  • 2,055
  • 3
  • 23
  • 34
0
votes
2 answers

Laravel 5.4 : socialite doesn't log

I'm using Socialite to log with Social networks on my platform. The data are inserted into my database but I'm not logged in... This is my controller : $socialProvider = SocialProvider::where('provider_id',$socialUser->getId())->first(); $user =…
Kaherdin
  • 2,055
  • 3
  • 23
  • 34
0
votes
1 answer

Laravel Socialite facebook exception

a have some strange issue. I use laravel 5.4 and Socialite. The issue is: When i move to /auth/social/facebook it redirects me to facebook, and all fine, but, when it redirect me to my web site, it can't get access_token. That's my social…
mikrafizik
  • 349
  • 1
  • 10
0
votes
2 answers

Cannot install composer laravel/socialite

I am having error in installing laravel/socialite in my laravel 5.2 project. I tried this -- composer laravel/socialite but gets an error like this. Please help me.
donnah
  • 43
  • 4
0
votes
1 answer

ErrorException in SessionGuard.php in Laravel 5.3 with Socialite (Facebook as provider)

I got a Laravel project (v5.3) which needs a login with a custom form and with facebook connect. So, I use Socialite and it's what I need, however, when I login for first time, the callback doesn't redirect to the view/url that I indicate, instead…
suhkha
  • 571
  • 1
  • 7
  • 17
0
votes
1 answer

Redirecting back to web page after User has clicked cancel

I integrated facebook login through laravel/socialite and its working fine. The problem is when user clicks cancel in the popup from facebook, the screen will stayed on facebook's page itself instead of redirecting to my site. Is anywhere i need to…
Naveen K
  • 859
  • 4
  • 14
  • 29
0
votes
2 answers

Laravel Socialite: Oauth 2 Rejection Workflow

I am trying out the "reject" workflow when a user cancels the OAuth Authorization request from the Social (LinkedIn in this case) page ClientException in RequestException.php line 111: Client error: POST …
Deepak Thomas
  • 3,355
  • 4
  • 37
  • 39
0
votes
0 answers

PHPunit tests for socialite login with google

I am using socialite in my application so that users can login with their google accounts. I want to write a functional test for this. So far I have got up to clicking the button to login, public function testAuth() { …
Phillis Peters
  • 2,232
  • 3
  • 19
  • 40
0
votes
1 answer

facebook authentication using laravel 5.1 socialite

hello im using localhost so i have recently switched to laravel 5.1 and im trying to use 'socialite' it provides so i have updated my config , services and the .env files so in my routes i also added these codes Route::get('/', function () { return…
BourneShady
  • 955
  • 2
  • 17
  • 36