laravel-socialite

Socialite: InvalidStateException in AbstractProvider.php line 191

亡梦爱人 提交于 2019-12-11 06:26:24
问题 I have the same issue. But I don't know what I have to do. Socialite works at the localhost, but on the webserver it doesn't work. Laravel 5.4. This stroke returns null at the AbstractProvider.php: $state = $this->request->session()->pull('state'); 回答1: Did you use asPopup method? Try save session then session()->save(); or you just can try this: session()->put('state', request()->input('state')); Socialite::driver('facebook')->user(); 来源: https://stackoverflow.com/questions/42153717

Socialite Google redirect_uri_mismatch

走远了吗. 提交于 2019-12-11 03:25:54
问题 I am trying to login with google using socialite , my facebook login works fine so the problem in my google app, any help!!! 'google' => [ 'client_id' => 'app-key', 'client_secret' => 'app-secret', 'redirect' => 'http://www.shoptizer.com/callback/google', ], 回答1: I found this link https://blog.damirmiladinov.com/laravel/laravel-5.2-socialite-google-login.html From this tutorial: Occasionally it happens that google require some time to apply client configuration If you get an error message

How do i retrieve a user github repositories with Laravel socialite?

柔情痞子 提交于 2019-12-11 02:59:48
问题 Been using socialite for quite a while now and i'm wondering if there is any built-in method that allows me to retrieve a user repositories. I'm familiar with the list on method offered on laravel website. Any idea how to fetch the Repos given the user token ? 回答1: I found another to do that . Find the code below : In the callback function i added a function that uses curl to fetch repos public function handleProviderCallback() { $user = Socialite::driver('github')->user(); $this-

Laravel/Socialite: Class Laravel\Socialite\Contracts\Factory does not exist

若如初见. 提交于 2019-12-11 02:25:27
问题 I'm trying to implement socialite but I am getting an error relating to the Factory class. My app can not find it. This is the code in my controller: <?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Http\Requests; use Laravel\Socialite\Contracts\Factory as Socialite; class PortalController extends Controller { public function __construct(Socialite $socialite){ $this->socialite = $socialite; } public function getSocialAuth($provider=null) { if(!config("services.

Laravel Socialite - Driver [youtube] not supported

Deadly 提交于 2019-12-11 02:06:34
问题 I'm having an issue when trying to use the Socialite Manager driver for YouTube Auth. This is the error I'm faced with: InvalidArgumentException in Manager.php line 90: Driver [youtube] not supported. Here's my controller file : <?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Http\Requests; use Socialite; class SocialAuthController extends Controller { public function redirect($provider) { return Socialite::with($provider)->redirect(); } public function callback(

Laravel Socialite - google login failed “Missing required parameter: code”

时光怂恿深爱的人放手 提交于 2019-12-11 01:59:35
问题 I have this strange issue with using Laravel Socialite to log users in via Google API. Everything configurations seem normal and ordinary, but I keep getting error Missing required parameter: code But in localhost works fine Localhost: Server: URI de redirection autorisés http://example.com/subdir/auth/google/callback http://localhost:8000/auth/google/callback 回答1: After a long search, the solution is to remove the profile from scopes in vendor\laravel\socialite\src\Two\GoogleProvider.php

Get Email Address from socialite while login with Gmail

我们两清 提交于 2019-12-10 14:25:19
问题 I am following this article to login with Google . I am able to redirect to gmail login successfully. Also, it goes to callback url successfully. Below is my code public function showGoogleLoginForm() { $providerKey = \Config::get('services.google'); return \Socialite::driver( 'google' )->scopes(['profile', 'email'])->redirect(); } Problem I am now trying to check if the callback gives me the email address of the user or not. So that, I could check that user is registered in my database or

Target [Laravel\Socialite\Contracts\Factory] is not instantiable

↘锁芯ラ 提交于 2019-12-10 14:19:30
问题 I am using laravel lumen 5.2. Target [Laravel\Socialite\Contracts\Factory] is not instantiable. I came across this error when trying to get Laravel to login with Twitter using the Socialite package. Work already done: A) In config\app.php 1. Laravel\Socialite\SocialiteServiceProvider::class 2. 'Socialite' => Laravel\Socialite\Facades\Socialite::class I followed this : http://goodheads.io/2015/08/24/using-twitter-authentication-for-login-in-laravel-5/ 回答1: What helped me is writing use

URL Blocked: This redirect failed because the redirect URI is not whitelisted…(Localhost web application)

孤街浪徒 提交于 2019-12-10 01:23:51
问题 URL Blocked: This redirect failed because the redirect URI is not whitelisted in the app’s Client OAuth Settings. Make sure Client and Web OAuth Login are on and add all your app domains as Valid OAuth Redirect URIs. I've installed the laravel/socialite and I'm trying to link my application with facebook ! after installing the package ,creating my facebook application , I try to acces to the login page with facebook on my application but it keeps telling me that ther's some kind of URL errors

Making requests to Google API using Guzzle and Socialite in Laravel 5

独自空忆成欢 提交于 2019-12-09 13:38:13
问题 I'm building a web app that has to interact with Google Contacts API and retrieve the Contact List of the authenticated user, but I'm getting ClientException in RequestException.php line 89: Client error response [url] https://www.google.com/m8/feeds/contacts/ambermphatic@gmail.com/full?prettyPrint=false [status code] 403 [reason phrase] Forbidden Here's my AuthenticateUser.php where I have included the getContactList function, I'm trying to make the Guzzle Request to the Google Server and