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
4
votes
1 answer

Laravel 5.5 \Socialite\Two\InvalidStateException

Socialite was working just fine until I updated to Laravel 5.5. I am getting a: \Socialite\Two\InvalidStateException The Whoops page error on line 209 from /Users/marcellopato/Sites/cepcar/vendor/laravel/socialite/src/Two/AbstractProvider.php: if…
Marcello Pato
  • 500
  • 6
  • 21
4
votes
5 answers

Can't detect callback is originated from provider in Laravel Socialite

In Socialite documentation, it says the following line gets the user information: $user = Socialite::driver('twitter')->user(); This naturally assumes that the callback were originated from Twitter. However, callback route is requested…
horse
  • 707
  • 4
  • 11
  • 30
4
votes
2 answers

How to use functions in services.php laravel config file

I needed to use a dynamic callback url for socialite so I added the url() function to my services.php file it worked fine(and its still working on my live server) But when tried to start the project locally I get the following error. When I remove…
Fenn-CS
  • 863
  • 1
  • 13
  • 30
4
votes
4 answers

Laravel 5.2 Socialite Retrieve Null Email

i'm new to Laravel and i'm trying to make a social auth. I have seen some tutorials and I've got to retrieve user id, profile pic and name from Facebook. My problem is the email, it comes null. My current object is this: User {#195 ▼ +token:…
4
votes
1 answer

Laravel socialite $user->getId()?

I'm not sure if this is what is really causing my issue, but perhaps someone will know. When I use Laravel Socialite and go: $social_user = Socialite::driver($provider)->user(); Then somewhere else in my code is do this: if ($authUser =…
Magearlik
  • 523
  • 1
  • 6
  • 18
4
votes
1 answer

Using Socialite-package for Linkedin login on laravel 5

I'm currently try to use socialite to create authentication using LinkedIn but I create the App on LinkedIn and I add the callback URL on it like this: http://localhost:8080/callback/linkedin and on config/services.php i add: 'linkedin' => [ …
S4L4H
  • 402
  • 1
  • 5
  • 21
4
votes
3 answers

Authenticate google token id with Socialite

I've received token-id from client android app which is generated by google. How do I authorize the user with socialite? I'm using google_api client now but it hasn't the convenience of Socialte.
4
votes
3 answers

Laravel Socialite 2.0 Facebook Authentication only returning id and name

I am using Laravel's Socialite package (version 2.0.0). It is working great for google and github but when I try to login with facebook, I get this: ErrorException in FacebookProvider.php line 89: Undefined index: first_name In the…
4
votes
2 answers

Laravel socialite config access type as offline in google login

Well i'm trying to implement in laravel 5.1 the login with google using socialite and i don´t have problems with the scopes but i need to implement the access_type as offline, somebody know, how can i configure this in socialite for laravel? this…
3
votes
4 answers

oAuth flow of data from third party domain

I have made a website that enables users to create their own widgets and place them on their own websites. I want users of those websites to be able to log in to these widgets using Twitter, Facebook and Google. I have 99% of the process in place,…
b4tch
  • 959
  • 9
  • 16
3
votes
1 answer

Laravel 8 Jetstream Profile Photos with Socialite Avatars

I'm trying Laravel 8 Jetstream with Laravel Socialite. The problem is when I retrieve the avatar and use its URL to profile_photo_path. The blade file appends http://localhost:8000/storage/ that is causing the avatar not to display. screenshot…
3
votes
1 answer

User not loged in after redirect from login with laravel socialite

Hello I am using Laravel Socialite for Oauth authentication with my remote Laravel Paspport app. After getting successfully the user autheticated with passport when I want to get the user to the aplication it redirects me back to login and acts as…
3
votes
1 answer

Socialite refresh tokens

I'm building a Laravel application where I need a user to be able to connect social channels, such as Twitter, Twitch, YouTube etc. I don't need them to be able to login with these medias, but connect them, so I my application can get access token…
Jesper Andersen
  • 524
  • 2
  • 6
  • 16
3
votes
2 answers

Laravel 7 Socialite Google Login Shows Invalid Grant Error

I have used the Socialite library for google login. When trying to fetch the user data after successful google login it shows an invalid grant message $googleUser = Socialite::driver('google')->user(); Response Client error: `POST…
noufalcep
  • 3,446
  • 15
  • 33
  • 51
3
votes
1 answer

Is there a way to set a custom Bearer Access Token within the "angular-oauth2-oidc" package?

I have created a custom endpoint for my Facebook login. This endpoint receives the Facebook access token from the client. I get this token inside my client (Ionic App) with the '@ionic-native/facebook/ngx' package. Inside a controller in the Laravel…