laravel-socialite

laravel socialite doesnt take GET parameter to redirect on same page

坚强是说给别人听的谎言 提交于 2020-01-14 03:29:06
问题 I have a problem with one Laravel plugin its called Socialite it allows my site users to loggin with facebook, twitter etc i need some help the problem is that after login it redirects to index page and the page visitor initiated login login url /login?redirect=https://www... socialite doesnt take this GET parameter default laravel login works with this parameter, but not socialite i think it doesnt support redirect, because callback URL is set static in config I cannot figure out how to

Laravel Socialite: Legacy People API has not been used in project

时光毁灭记忆、已成空白 提交于 2020-01-14 02:54:07
问题 I have used Laravel 5.4 with socialite 3.0 for social login on my web application. But nowadays I got an error Legacy People API has not been used in project xxx . Then I have made some changes in a core file of socialite package. /vendor/laravel/socialite/src/Two/GoogleProvider.php Line 61: Replace https://www.googleapis.com/plus/v1/people/me? by https://www.googleapis.com/oauth2/v3/userinfo? And update mapUserToObject function with below code: protected function mapUserToObject(array $user)

Laravel 5 and Socialite - New Redirect After Login

霸气de小男生 提交于 2020-01-11 09:03:09
问题 Another newb question here, but hopefully someone can shed some light: I am using Socialite with Laravel 5, and I want to be able to redirect the user to a page on the site after they have logged in. The problem is that using return redirect('any-path-I-put-here'); simply redirects back to 'social-site/login?code=afkjadfkjdslkfjdlkfj...' (where 'social-site' is whatever site is being used i.e. facebook, twitter, google, etc.) So, what appears to me to be happening is that the redirect()

Laravel 5 and Socialite - New Redirect After Login

纵饮孤独 提交于 2020-01-11 09:03:03
问题 Another newb question here, but hopefully someone can shed some light: I am using Socialite with Laravel 5, and I want to be able to redirect the user to a page on the site after they have logged in. The problem is that using return redirect('any-path-I-put-here'); simply redirects back to 'social-site/login?code=afkjadfkjdslkfjdlkfj...' (where 'social-site' is whatever site is being used i.e. facebook, twitter, google, etc.) So, what appears to me to be happening is that the redirect()

RuntimeException - Session store not set on request - Laravel Socialite - Facebook

给你一囗甜甜゛ 提交于 2020-01-06 07:38:06
问题 I'm using Laravel 5.7 and Laravel/Socialite 3.1 . I want to login using a Facebook app I just configured for this project. These are the main files I have configured for this: /.env ... FACEBOOK_CLIENT_ID=*** FACEBOOK_CLIENT_SECRET=*** FACEBOOK_CALLBACK_URL=http://localhost:8000/auth/facebook/callback /config/services.php <?php return [ ... 'facebook' => [ 'client_id' => env('FACEBOOK_CLIENT_ID'), 'client_secret' => env('FACEBOOK_CLIENT_SECRET'), 'redirect' => env('FACEBOOK_CALLBACK_URL'), ],

Laravel socialite 400 Bad Request response

*爱你&永不变心* 提交于 2020-01-04 05:46:17
问题 i have created a laravel socialte setup .and it was working before perfectly now its showing error(below). 1)i have changed client_secret 2)created a new oauth credentials still not working public function redirectToGoogle() { return Socialite::driver('google')->redirect(); } public function handleGoogleCallback() { $user = Socialite::driver('google')->stateless()->user(); $user->getId(); // 1472352 $user->getNickname(); // "overtrue" $name= $user->getName(); // "安正超" $emailid= $user-

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

末鹿安然 提交于 2020-01-03 17:20:18
问题 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 unintentionally in some cases, and the line above gives the error like that: InvalidArgumentException in TwitterProvider.php line 15: Invalid request. Missing OAuth verifier. How can I detect the callback is originated from expected place (it is Twitter here)

Using Laravel Socialite to Manage User socials setting (like pinterest at user settings page)

北战南征 提交于 2019-12-25 16:28:03
问题 How to make unauthorization user social media like pinterest in settings page. so the user can settings connect and disconnect their social media from our website. pinterest setting social picture page : 回答1: [SOLVED] I see, I can using revoking permissions https://developers.facebook.com/docs/facebook-login/permissions/v2.2#revoking my bad, not read docs carefully. hehehe 来源: https://stackoverflow.com/questions/30611328/using-laravel-socialite-to-manage-user-socials-setting-like-pinterest-at

Using Laravel Socialite to Manage User socials setting (like pinterest at user settings page)

我怕爱的太早我们不能终老 提交于 2019-12-25 16:27:11
问题 How to make unauthorization user social media like pinterest in settings page. so the user can settings connect and disconnect their social media from our website. pinterest setting social picture page : 回答1: [SOLVED] I see, I can using revoking permissions https://developers.facebook.com/docs/facebook-login/permissions/v2.2#revoking my bad, not read docs carefully. hehehe 来源: https://stackoverflow.com/questions/30611328/using-laravel-socialite-to-manage-user-socials-setting-like-pinterest-at

facebook authentication using laravel 5.1 socialite

▼魔方 西西 提交于 2019-12-25 04:07:39
问题 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 view('welcome'); }); Route::get('auth/facebook', 'Auth\AuthController@redirectToProvider'); Route::get('auth/facebook/callback','Auth\AuthController@handleProviderCallback'); Route::get('home', array('as' => 'home', 'uses' => function(){ return