Questions tagged [laravel-socialite]

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

Filter by
Sorted by
Tagged with
0 votes
0 answers
17 views

Test pages behind google authentication in a laravel project (socialite) with Cypress

I want to test pages behind google authentication in a laravel project (socialite) with Cypress. I have done what this guide says and I am receiving the refresh tokens correctly https://docs.cypress....
George Joseph's user avatar
0 votes
1 answer
52 views

Laravel Socialite Login Twitter throw error :Missing required parameter [code_verifier]

I'm struggling with Laravel Socialite login with Twitter. On the call back URL i get the following error : {"message":"Error occuredies","data":"Client error: `POST ...
Muhammad Khan's user avatar
0 votes
1 answer
65 views

Laravel Socialite Login with LinkedIn | Error Unauthorized scope error

Hey Folks I'm trying the Laravel Socialite Package to allow users to log in with their LinkedIn account. I have already set the Client ID, Secret, and URL In my ENV File as follows: LINKEDIN_CLIENT_ID=...
Muhammad Khan's user avatar
0 votes
0 answers
31 views

AbstractProvider error when creating custom driver for SSO via Socialite

I'm on Laravel v8.65 and running Socialite v5.9. I am trying to allow users of my application to login via SSO. The identity provider is a third-party CRM. The CRM is not natively supported by ...
markusp's user avatar
  • 329
-3 votes
0 answers
12 views

Would anybody please explain the process of implementing login with google feature in laravel using laravel socialite package?

I want a proper guideline to work with login with google or any social media login. I tried few blogs where my concept wasn't clear. I want from expert, what process I should go throught. How the ...
Mazharul Islam's user avatar
0 votes
0 answers
66 views

I couldn't go through Middleware in Laravel

I use Laravel Socialite to make login function, I wanna check if not exsisting email in database then go to register form, if email exist then login but i cannot go through middleware although I write ...
Hieu Nguyen's user avatar
0 votes
0 answers
55 views

facebook socialite API redirect to the callback url without validating fb login form

While implenting fb login in my laravel website, without displaying the fb login form, it is redirecting to the facebook callback url which I have set in my env file. Why this is happening? Any help ...
M G's user avatar
  • 23
0 votes
0 answers
29 views

Laravel google Login with Socialite

I have proble error 404 when i login with google enter image description here But before that i can choose the email it correctly goes well enter image description here This My config/service.php <?...
Bry's user avatar
  • 1
0 votes
0 answers
33 views

Laravel rest API how do I get User thirdparty token in another endpoints

I am currently adding Spotify Authentification to just getting the Spotify Token to have acces to different features (User Features) and for example adding to a user connected some tracks to there ...
bartz's user avatar
  • 13
0 votes
1 answer
20 views

Restrict the pages in laravel when using socialite as login

In laravel have added socialite login for google,but i wanted them to be authenticated first before going to /studentTable route. And if they are not authenticated then they go back to login. Im new ...
Sard's user avatar
  • 73
0 votes
0 answers
87 views

Laravel SocialiteProviders/saml2 error during callback

I'm using socialiteprovider/saml2 for my web to intergrate with saml idp,let say right now im using mocksaml to test in my localhost, however during callback process I keep on getting error. config/...
dinnn's user avatar
  • 21
0 votes
0 answers
263 views

I can't login with Facebook Socialite in Laravel API/Passport (Sorry, something went wrong.) error

I'm trying to implement Facebook login via socialite For Laravel API using passport: api.php: Route::middleware('api')->group(function () { Route::group(['prefix' => 'auth'], function () { ...
Sam's user avatar
  • 170
0 votes
0 answers
25 views

How to check if a user has registered an account on the website using social login information

I want to integrate Facebook social login into my website, but how can I accurately check if that Facebook account has been registered on my website or not? For example, I have a developer account: ...
HCode's user avatar
  • 1
1 vote
0 answers
41 views

How to resolve 'Laravel\Socialite\Two\InvalidStateException' error in Laravel while using Socialite package in a local environment?

Despite having installed the Socialite package in my local Laravel application, configured the app.php and services files with the same redirect URL, I still encounter the 'Laravel\Socialite\Two\...
Mohit yadav's user avatar
0 votes
1 answer
171 views

Error when trying to add Apple SSO using the Apple provider to Laravel Socialite

I'm attempting to add Apple single sign on to my web application, powered by Laravel. I'm utilizing the javascript version of their sign in, which I'm not wedded to but seems like their preferred ...
Jeremy L.'s user avatar
  • 853
0 votes
0 answers
145 views

return Socialite::driver('google')->user(); is not working

I want to try google login in laravel. So at first for checking purpose i want to return Socialite::driver('google')->user(); this. Here i am adding all of part of my code with error Controller: ...
Hulk's user avatar
  • 1
0 votes
1 answer
123 views

I Con't Add Multi Google Account Using Laravel 10 and Socialite

I Try To Create Multi Google Services Using Laravel 10 And Socialite; In Services.php I add : 'sign_in_google' => [ 'client_id' => env('SIGN_IN_GOOGLE_ID'), 'client_secret' => env('...
Ramy Mohamed's user avatar
0 votes
1 answer
527 views

Laravel Socialite With Apple return "Invalid JWT Signature"

I try to use provided token to fetch current user data as API but I keep received error "Invalid JWT Signature". I had follow different tutorials like bannister AND devpeel but both also ...
Dirty Rex's user avatar
0 votes
0 answers
90 views

Laravel Socialite with facebook login is inconsistent

I have a Laravel/Breeze/InertiaJS/Vue setup and need to login using SNS like Google and Facebook. I am able to login/logout with google without any issues but on facebook, login is very inconsistent. ...
Mr. Kenneth's user avatar
0 votes
0 answers
161 views

authentication problem with azure active directory and laravel

I'm trying to configure the login to a laravel app with the azure active directory, locally everything works fine, but when I try to publish it in a test environment I get this error: enter image ...
Edwin Tavera's user avatar
1 vote
2 answers
796 views

Getting Error "Undefined type 'Laravel\Socialite\Facades\Socialite'.intelephense(1009)"

I'm getting this weird error. Although i have performed the required steps of installing the "Socialite" package , for instance i have edit the "providers" and "aliases" ...
Muhammad Khan's user avatar
0 votes
0 answers
267 views

How To get a new Access using Laravel Socialteprovider

i'm using lumen https://socialiteproviders.com/Microsoft-Azure/#installation-basic-usage I'm getting access_token and refresh_token after authentication but I want to refresh a token after its ...
Milan Suthar's user avatar
0 votes
1 answer
234 views

Authorization code grant with Socialite setup

I'm trying to implement an Authorization code grant with Socialite. I'm able successfully to receive users in the callback, but struggling to set up the other part of auth. I've created the personal ...
henrbu's user avatar
  • 147
1 vote
1 answer
262 views

Laravel 9: Socialite: cURL error 7: (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://www.googleapis.com/oauth2/v4/token"

I have been struggling for the past week with this error, and I cannot find one like mine online. I am developing an application with Laravel 9 that let the user log in using the Google Account. ...
Drinu89's user avatar
  • 43
0 votes
0 answers
67 views

How can I solve redirect error of Laravel Socialite?

I installed socialite to laravel project? But I have to change redirect url of google. Even though I changed url from google console and defined new client Id, client secret and url at config/services....
RCeyda 's user avatar
  • 107
0 votes
1 answer
280 views

saml2 not working with laravel socialite providers package

My aim is to integrate an okta sso app that uses saml2 protocol. My project is built upon laravel and I'm using this package to help me integrate saml2. As per the docs I have implemented the ...
Tanzim Chowdhury's user avatar
1 vote
0 answers
206 views

Laravel Socialite Callback URL not approved for this client application

I tried to add Twitter OAuth to my Laravel App, I followed multiple tutorials but always had the same issue. Received HTTP status code [403] with message "<?xml version='1.0' encoding='UTF-8'?&...
Francisco Flores's user avatar
0 votes
0 answers
68 views

Laravel, how to run legacy & jetstream process login when using google callback

We trying to migrate an old manager (legacy) to Laravel, we made all a process using Jetstream to log, and Fortify::authenticateThrough to run some necessary code for always running legacy manager (...
chouxe's user avatar
  • 9
0 votes
1 answer
226 views

How do I get a user's organization id when they login with Microsoft oauth?

I try to implement the microsoft auth into my application using Laravel Socialite, but since I'm working in a multi-tenant environment, I need to assign a user to a organisation. Is there anything ...
JanKrb's user avatar
  • 1
1 vote
1 answer
172 views

Laravel sessions are destroyed after login from Google

I am using Laravel Shopping cart and Laravel Socialite for login, login works fine but when the user logs in it deletes his Cart and all other sesshions on the page, do you know how to fix it ? ...
Pepa Zdepa's user avatar
0 votes
1 answer
441 views

Error Laravel\Socialite\Two\InvalidStateException In the callback method from the Google side

I want use Socialite package but receive in Error ! controller codes : namespace App\Http\Controllers\Auth; use App\Http\Controllers\Controller; use App\User; use Laravel\Socialite\Facades\Socialite; ...
Ali Salehi's user avatar
0 votes
0 answers
85 views

How to solve Twitter socialiteproviders error on production server?

I'm facing an error in my production server with Twitter socialiteproviders only. The error message appeared 500 Server Error Indirect modification of overloaded property SocialiteProviders\Manager\...
Sami Mansour's user avatar
0 votes
0 answers
68 views

Laravel SocialiteProviders\Twitter\Server::getAuthorizationUrl () compatible Issue

I have cloned laravel 6.2 projects from the git repository into my local system. that project has worked with the laravel socialite package. after cloned I tried with composer install. when the "...
Balakumar B's user avatar
0 votes
0 answers
66 views

Laravel Socialite Facebook OAuth Guzzle Server Exception

I am trying to OAuth with Socialite on Laravel. My code for the callback is as follows: Route::get('/auth/facebook/redirect', function (Request $request) { return Socialite::driver('facebook')-&...
Devin Dixon's user avatar
  • 11.6k
0 votes
0 answers
202 views

Get google token for laravel after react native login

I am doing login by using this function in react native: await GoogleSignIn.initAsync({ webClientId: 'XXXXXXXXXXXXXXXXXXX', offlineAccess: true }); i tried the idToken and serverAuthCode in ...
Mohamad Zbib's user avatar
0 votes
1 answer
123 views

How to bypass Socialite in development?

I am using a KeyCloak login in production, but in development, I would like to log in with the default user populated in seeders. I tried to bypass the authenticate method with this: <?php ...
nowox's user avatar
  • 26.2k
0 votes
0 answers
201 views

Laravel - facebook login for api, using passport

I am having this code to let me login from API: $oClient = DB::table('oauth_clients')->where('password_client', 1)->first(); $response = Http::asForm()->post(route('passport.token'), [ ...
Mohamad Zbib's user avatar
2 votes
1 answer
540 views

SPA OAuth2 social sign in - can you directly link to provider instead of redirecting?

I have a SPA that uses Laravel Sanctum for authentication. I am implementing OAuth2 social sign in. In a server side rendered application this is how social sign in would work: User submits a form ...
Peter Hegman's user avatar
0 votes
0 answers
769 views

Laravel Socialite can't login with apple

I try to add Log in With Apple in my Flutter App With Laravel Backend. In Flutter I use sign_in_with_apple: ^4.1.0 for generate identityToken, and now I Have to Get User Data With Laravel so I use ...
Michel E Ibrahim's user avatar
0 votes
0 answers
346 views

Add Google, Facebook and Instagram Login in Flutter APP with REST API

I have purchased this Multi-restaurant system from codecanyon. Backend is developed with Laravel and I want to add Social Login in customer app but i am not able to figure out the way to do it. ...
Muhammad Shafique's user avatar
0 votes
0 answers
42 views

Oauth permanent token when authenticating via social login

I have a web and android applications. I want both apps to login users using their social media handles. I want to use google facebook twitter tiktok apple I have looked at how facebook ...
Gandalf's user avatar
1 vote
0 answers
563 views

Laravel Socialite: This authorization code has been used (Facebook)

Description: I have implemented the laravel socialite stateless, because I am using Laravel as a backend app with REST APIs and my frontend is in Angular. I get the correct redirect URL, however, when ...
user13289818's user avatar
3 votes
4 answers
214 views

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 ...
b4tch's user avatar
  • 959
0 votes
1 answer
729 views

Laravel Socialite Saml2: Ideal Location for SAML Config XML file

I was implementing the Saml2 using Laravel with an Identity provider metadata XML file by following the documentation on this page. I have added the following code: 'saml2' => [ 'metadata' => ...
Akshay Khale's user avatar
  • 8,191
2 votes
0 answers
385 views

Laravel Jetstream + Socialite + 2FA

We started a new project with Laravel Jetstream (Inertia / vuejs) and implemented Laravel Socialite. When a new user register, login, enable 2FA and re-login the 2FA works fine, but when a user login ...
Ron's user avatar
  • 21
0 votes
1 answer
65 views

Can't install Laravel Socialite via composer

I'm trying to require Laravel Socialite following the composer command in the DOCs but it's showing me the below error. Anyone knows what to do? I'm using Laravel 9 and I don't think it's related to ...
Mostafa Said's user avatar
0 votes
1 answer
607 views

Laravel Socialite: Laravel\Socialite\Two\InvalidStateException

I want to create social login using Google and Facebook. In the first step, I want to create Google Login. When I select the Google ID and Callback it shows me this error. Laravel\Socialite\Two\...
Creatique IT's user avatar
1 vote
0 answers
307 views

Suddenly getting InvalidStateException with Laravel Socialite

We are developing an Laravel 8(.83.5) application and are currently doing this locally. We've successfully (but partially) implemented SSO using Laravel Socialite for Microsoft Azure and Google. Both ...
ebeo's user avatar
  • 83
1 vote
2 answers
1k views

laravel socialite google login / google auth, callback "404 not found"

i have this on link pop up <a href="login/google" class="btn btn-white btn-outline-white"><span class="fa fa-google">oogle</span></a> My route Route::get('login/...
Nasa Wiko's user avatar
0 votes
1 answer
2k views

Secure Laravel API with keycloak using socialite provider

im using Keycloak for an SSO to authenticate user that already exist in server (keycloak). I used Socialite provider and i can now authenticate user and access their token on Keycloak. But i want now ...
Reda LAHRACHE's user avatar

1
2 3 4 5
13