Category : laravel-socialite

I’m using Laravel Socialite in a project and added the Twitter Provider in order to be able to allow my users to integrate with their Twitter account. I followed the steps here https://socialiteproviders.com/Twitter/ and I’m getting the following error: Received HTTP status code [401] with message "{"errors":[{"code":32,"message":"Could not authenticate you."}]}" when getting temporary credentials. If ..

Read more

Folks, I home my question ist not too boring. I’m very new in Laravel and fighting around with accessing the access_token I receive from the Socialite over the LoginController to reuse it for other API calls. I can see the access_token after logging in and return it from the LoginController $azUser = Socialite::driver(‘azure’)->user(); No I ..

Read more

I’m using Laravel Socialite. I’ve check in socialite yahoo code. return $this->buildAuthUrlFromBase(‘https://api.login.yahoo.com/oauth2/request_auth’, $state); But when visit localhost.com/login/yahoo (on localhost). https://api.login.yahoo.com/oauth2/request_auth_fe?client_id={YAHOO_CLIENT_ID}&redirect_uri=http%3A%2F%2localhost.com%2Fyahoo%2Fcallback&scope=openid2%2Cprofile%2Cemail&response_type=code&state=MTuMVI6uBhEOgYtULmPbvQovBgW4Kshc2QoB4Otr&openid2_realm=http%3A%2F%2Flocalhost.com Yahoo App Screenshot Yahoo Permissions/Scopes Sourc..

Read more

I want to use Google Authentication for signing users in to my website with Laravel. I have successfully installed socialite package and after creation of OAuth Client IDs, I added my credentials to .env file like this: GOOGLE_CLIENT_ID=SOMEID GOOGLE_SECRET_KEY=SOMEKEY GOOGLE_CALLBACK_URL=http://localhost:8000/auth/google/callback Then I added this to config/services.php: ‘google’ => [ ‘client_id’ => env(‘GOOGLE_CLIENT_ID’), ‘client_secret’ => env(‘GOOGLE_CLIENT_SECRET’), ..

Read more

I’m using Laravel 8 to develop my project and I would like to use Google authentication system for my users to login. So I downloaded package via composer require laravel/socialite command and added my information on .env: GOOGLE_CLIENT_ID=example GOOGLE_SECRET_KEY=example GOOGLE_CALLBACK_URL=http://localhost:8000/auth/google/callback And then I defined them on config/services.php: ‘google’ => [ ‘client_id’ => env(‘GOOGLE_CLIENT_ID’), ‘client_secret’ => ..

Read more

I’m working with Laravel 8 to develop my project, and I want to make a Login system with Google Authentication API so I just downloaded socialite package by using composer require laravel/socialite. Then I created my controller called GoogleAuthController: namespace AppHttpControllersAuth; use AppHttpControllersController; use IlluminateHttpRequest; use Socialite; class GoogleAuthController extends Controller { public function redirect() ..

Read more

I am working on social login in Laravel. When passing parameter for identifying sign in and signup, it occurs error. "accounts.google.com redirected you too many times." Without a parameter, it works well. These are my router. Route::get(‘/login/google’, ‘[email protected]’)->name(‘login.google’); //working well Route::get(‘/login/google/{method}’, ‘[email protected]’)->name(‘login.google’); //not working Route::get(‘/login/google/redirect’, ‘[email protected]’); This is my controller. <?php namespace AppHttpControllersAuth; use AppHttpControllersController; ..

Read more

I’m using Laravel Socialite to login with SuperOffice API. Have only just added the provider as a pr but testing it already. I’m using the provider superoffice locally and inside a package superoffice-api I’m creating. Have added both packages to composer.json in the Laravel app: "repositories": [ { "type": "path", "url": "./packages/superoffice-api" }, { "type": ..

Read more

I am using Okta socialite to integrate and authentication. Once of my customer is facing an issue that it showsan ‘InvalidStateException’. But I could not recreate the issue. The redirect function is provided below and the screenshot of the error. class OktaController extends Controller { public function redirect() { return Socialite::driver(‘okta’)->redirect(); } … Sourc..

Read more

Laravel Socialite Twitter (Oauth1) I am having trouble with twitter login via laravel socialite. Socialite::driver(‘twitter’)->user(); the code above throws an error with message: Argument 1 passed to LeagueOAuth1ClientServerServer::getTokenCredentials() must be an instance of LeagueOAuth1ClientCredentialsTemporaryCredentials, null given I checked Laravel Socialite documentation and it says that to get the user details of a twitter account, I ..

Read more

Hello I’m currently working on Laravel Socialite and face some problem. Below is my route to google login. Route::get(‘sign-in/google’, ‘[email protected]’)->name(‘login.google’); Route::get(‘signin/google/redirect’, ‘[email protected]’)->name(‘login.google.redirect’); When I try to visit the first route (login.google) it return me 404 not found page, but when I change my route as below Route::get(‘sign-in’, ‘[email protected]’)->name(‘login.google’); Route::get(‘signin/google/redirect’, ‘[email protected]’)->name(‘login.google.redirect’); I can now see the ..

Read more

I am using Laravel socialite package and socialiteproviders/youtube. I am signing users in with their google credentials and later I need to access their youtube channel and link their videos to my site. The problem is If I sign them in initially using youtube.readonly, some users do not have channels, which will result with an ..

Read more

Once in a while I get this response back, with an empty email field: LaravelSocialiteTwoUser [token] => [refreshToken] => XXXXX [expiresIn] => 5183971 [id] => 31490805051XXXXX [nickname] => [name] => Reginald XXXXXX [email] => [avatar] => https://graph.facebook.com/v3.3/31490805051XXXXX/picture?type=normal [user] => Array ( [name] => Reginald XXXXXX [id] => 31490805051XXXXX ) [avatar_original] => https://graph.facebook.com/v3.3/31490805051XXXXX/picture?width=1920 [profileUrl] => Can ..

Read more

Today, my Laravel application started getting OAuthException errors on Facebook auth login. I’m using socialite, and everything worked fine, but now it’s throwing missing permissions #200 error. The error log: [2020-10-01 09:46:56] production.ERROR: Client error: `GET https://graph.facebook.com/v3.3/me?access_token=xxxxxxxx&fields=name,email,gender,verified,link&appsecret_proof=xxxxxxx` resulted in a `403 Forbidden` response: {"error":{"message":"(#200) Missing Permissions","type":"OAuthException","code":200,"fbtrace_id":"AuAHfB32VPrQ16BoTQd3Dc (truncated…) {"exception":"[object] (GuzzleHttpExceptionClientException(code: 403): Client error: `GET https://graph.facebook.com/v3.3/me?access_token=xxxxxxxxxx&fields=name,email,gender,verified,link&appsecret_proof=xxxxxxxxx` resulted ..

Read more