624 questions
0
votes
1
answer
63
views
Lavarel Socialite and introspection endpoint. Aka Access Token validation at server side
I'm a bit confused because a lot of articles about Oauth with Mobile App explains the client side but never talk about the server side which needs to verify the validity of the Access Token. As if the ...
0
votes
1
answer
125
views
Laravel + Microsoft + Socialite login on multi-tenant site - how to know which tenant a login came from?
I have a Laravel app which uses multi-tenancy (via Spatie) in which each tenant (essentially a domain or a subdomain) is linked to a single project. Login is via Microsoft using the Socialite provider....
0
votes
0
answers
38
views
My laravel project implemention the socialite package, but fetche the error
public function handleGoogleCallback(Request $request)
{
$user = Socialite::driver('google')->user();
$findUser = User::where('google_id', $user->id)->first();
if ...
0
votes
1
answer
60
views
socialiteproviders/laravelpassport : getAccessTokenResponse returns null as response
We are using socialiteproviders/laravelpassport for OAUTH2.0 integration and try to authenticate users. The first call return expected code and state values Socialite::driver('laravelpassport')->...
0
votes
0
answers
88
views
Keycloak Integration (Using SocialiteProviders) with Laravel 11 error; Class Laravel\Socialite\Two\User contains 7 abstract methods and must theref
Im trying to integrate Keycloak to my Laravel 11 application. The plan is to use Keycloak as Authentication Provider for user to login to my system instead of the conventional way of logging in.
i ...
4
votes
1
answer
576
views
Login with Linkedin - not redirecting back to my app
Context:
I'm developing a "login with LinkedIn" feature on Laravel 11 using socialite. This requires 2 endpoints:
One that redirects the user to a LinkedIn login page
One that LinkedIn ...
0
votes
0
answers
104
views
Laravel 11 Socialite - how to get Google user with Javascript token
I have a Vue application which login user with Google JS SDK. Javascript get access_token and send this token to Laravel. What I expect is the Socialite should be able to login to Google API with this ...
-1
votes
1
answer
2k
views
Add Microsoft account login in Laravel application
I currently have a web application made with Laravel, which already has the standard login system provided by Laravel.
I would like to add the option of being able to log into the application also ...
0
votes
1
answer
313
views
Social login with google/facebook via Laravel API
I am trying to implement social login with laravel API.
I have implemented the Social login for web. And it's working perfectly.
Facing problem to implement the same feature for React Native ...
0
votes
1
answer
89
views
Laravel Test Socialite Login
I want to build "login with google" fetaure with laravel and socialite, but when I write testing on that feature, I return false with message
Method ...
0
votes
1
answer
104
views
Laravel Socialite dynamic server url for provider?
I am trying to add a provider for the new Matrix Auth protocol based on OIDC/OAuth2.0 which is outlined in https://areweoidcyet.com/
The major catch here is that since Matrix is selfhostable and ...
1
vote
2
answers
576
views
Laravel Socialite Google OAuth with Sanctum: Session created but user_id is null after login
I'm building an API-only SPA with Laravel Sanctum and Nuxt3, using cookie-based session authentication. I’ve implemented Google OAuth using Laravel Socialite.
Here’s my current setup for the Google ...
0
votes
0
answers
82
views
How can I get a user's Facebook friends using Laravel Socialite in a test environment?
I'm using Laravel Socialite to handle Facebook authentication in my Laravel application, and I’m working in a test environment only. I have successfully integrated Socialite to allow users to log in ...
0
votes
2
answers
275
views
Laravel Socialite Twitter OAuth fails with "Session store not set on request" in stateless API
I'm working on integrating Twitter OAuth using Laravel Socialite in a stateless API for a Single Page Application (SPA). I'm encountering an error when trying to generate the authorization URL.
...
0
votes
0
answers
253
views
Sign-in with Apple Laravel 11 400 Bad Request response
I'm currently trying to implement 'Sign-in with Apple' connection in a Laravel 11 project, but without Socialite. I am blocked with my callback method.
Here's the error that I get:
Client error: `...
3
votes
1
answer
847
views
Enable nonce to laravel official packages
I'm currently working on a Laravel project that uses Telescope, Horizon, and Socialite. I've implemented a strict Content Security Policy (CSP) that disallows inline scripts, and I want to secure ...
1
vote
1
answer
733
views
Undefined method 'stateless'. With Google in Laravel Socialite
I have a controller that I am using for Google auth in my Livewire app. I am able to make a call to google and get the user, I however have an intelephense(P1013) error. After looking around I ...
0
votes
1
answer
446
views
Trying to configure Socialite with SAML2 in Laravel 11
I am trying to follow the instructions from https://laravel.com/docs/11.x/socialite and https://socialiteproviders.com/Saml2/
I have run
composer require laravel/socialite
composer require ...
1
vote
1
answer
76
views
Issue with Session Data Persistence in Google OAuth Login Integration
I’m having trouble with handling user types during Google login in my Laravel application. Here's what I've implemented and the issue I'm facing:
Controller Implementation:
Redirect from Register:
...
1
vote
0
answers
964
views
Laravel Socialiteprovider problem: Driver [apple] not supported
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 ...
0
votes
0
answers
74
views
Laravel Socialite Login Error with Google Sign-In
I am trying to implement socialite into my laravel project where users can login with their google accounts.
Here is my usercontroller file
<?php
namespace App\Http\Controllers;
use Illuminate\...
0
votes
1
answer
263
views
Unable to fetch videos of facebook page using graph API
I have and Facebook developer account created around 4 years before. The problem is when i try to fetch page videos, its not returning any result.
Note: i am using laravel-socialite package and the ...
3
votes
0
answers
66
views
Login callback goes to AWS IP instead of the domain
I have hosted my app to AWS with Cloudfront.
I am using socialite for Social login.
Facebook login works fine, but in Google login, it callback to ec2-x-xx-xxx-xxx.ap-northeast.AmazonAWS... Insted of ...
0
votes
0
answers
62
views
Laravel login is stuck in an endless loop when the 1Password browser plugin is active
I received a problem report from a user. For them, the login page keeps loading endlessly. Upon closer inspection, I was able to reproduce it with the 1Password plugin. It seems to attempt to log in ...
0
votes
0
answers
43
views
Auth::user() returns null, but works in the function that Auth::login() called
Laravel does not save my session after auth()->login()
Hello. I'm using Socialite to create Google login in Laravel application, the redirect and callback functions worked fine. But I am having ...
0
votes
0
answers
155
views
Laravel Socialite GitHub Authentication: Redirect Issue after Successful Authentication
I'm encountering an issue with GitHub authentication in my Laravel app using Laravel Socialite. Despite setting up everything correctly and being able to retrieve user data from GitHub, users aren't ...
1
vote
1
answer
1k
views
Laravel Socialite Apple Sign In no user info
I add in my Laravel API on my login endpoint ability for user to sign-in with apple also when I try, everything from the config looks good also in my api I receive this:
(
[id] => 001519....
0
votes
0
answers
119
views
Correct way to handle email/password sign up, in addition to using Laravel Socialite for OAuth?
I'm building an iOS app with Laravel backend.
I'm using Firebase Authentication to handle the following authentication types: Google, Apple, and email/password sign up.
I've set up Google and Apple ...
-1
votes
1
answer
373
views
How to get business page with facebook graph api and laravel socialite package?
I use laravel socialite package to use facebook graph api and i want to get business page or business account information that associed on an simple facebook account
I use this endpoint "https://...
2
votes
1
answer
1k
views
How to add Laravel Socialite login to SPA that authenticates with Laravel Sanctum
I have a vue3 app that authenticates to a Laravel backend using Sanctum.
My auth workflow for the Sanctum backend looks like this:
Front end makes ajax request to API with user/pass
Back end checks ...
0
votes
0
answers
252
views
Laravel Google Login invalid_grant
I'm working on my Laravel project and I have already configured registration and login with Google through Laravel Socialite. Everything works correctly from the browser, the problem comes when I use ...
0
votes
1
answer
907
views
How to fix Laravel Declaration of SocialiteProviders refresh token must be compatible error
I've recently upgraded to Laravel 10 and am trying to simply run composer up. My composer file looks like:
"require": {
"php": "^8.2",
...
"laravel/...
-1
votes
2
answers
326
views
How can i figure out "Not enough permissions to access: GET /me" error?
I am trying to add LinkedIn auth on my laravel app using socialite package. But I'm getting the following error:
Client error: `GET https://api.linkedin.com/v2/me?projection=%28id%2CfirstName%...
0
votes
3
answers
963
views
Twitter API v2: 403 Forbidden - "Use keys from Twitter Developer App attached to a Project"
I've been using Laravel/Socialite to interact with the Twitter API v2 for a while, and everything was working fine until last week. I'm encountering a "403 Forbidden" error with the message:
...
1
vote
1
answer
259
views
"Invalid_grant" Error When Using Passport and Google SSO on Production Server
I'm facing a challenging issue while trying to implement Google SSO with Laravel using Passport. Everything works fine in the development environment and on the dev server, but when I attempt it on ...
0
votes
1
answer
235
views
Laravel Sociliate keeps asking for granted scopes
I'm using Laravel Socialite for oAuth2 with Google using this code:
return Socialite::driver('google')
->with([
'access_type' => 'offline',
'prompt' => 'consent',
'...
0
votes
1
answer
583
views
Laravel Passport & Laravel Socialite for SSO
I am trying to create a Laravel application which will handle authorization for other first-party Laravel applications. My current flow is:
User from application A presses the login button
They get ...
0
votes
1
answer
586
views
Laravel Socialite Linkedin Login Not Working
I have been trying to login through linkedin for my application there are few issues
First that while redirecting it is accepting old scopes that were used in oauth1 but now im using oauth2 but it is ...
2
votes
0
answers
195
views
Twitter oauth 2 Laravel Socialite not returning email in response
I have been trying to sign-in through twitter-oauth-2 using laravel 9 socialite but after login twitter does not return email in response i have tried all the methods but none of them are working can ...
0
votes
1
answer
421
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 ...
2
votes
1
answer
2k
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=...
1
vote
0
answers
407
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 ...
0
votes
0
answers
78
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 ...
0
votes
0
answers
254
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 ...
0
votes
0
answers
60
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 ...
0
votes
1
answer
107
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 ...
0
votes
1
answer
970
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 () {
...
1
vote
0
answers
118
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\...
0
votes
1
answer
1k
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 ...
0
votes
1
answer
506
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('...