artdarek / oauth-4-laravel

OAuth Service Provider for Laravel 4
684 stars 217 forks source link

Passing parameters in Google Plus Redirect URI #122

Open hyakki opened 9 years ago

hyakki commented 9 years ago

Hi guys.

I would like to know how i can pass parameters into Google Plus Redirect URI to retrieve some informations after a sign in with it. It worked for me with Facebook & Twitter but can't manage to make it work with Google Plus.

Here is my code :

$parrain_id = Input::get('parrain_id') != '' ? Input::get('parrain_id') : null;

$googleService = OAuth::consumer('Google','http://localhost:8888/inscription/consommateur/googleplus/attempt?parrain_id='.$parrain_id);

And my Redirect URI is set to : "http://localhost:8888/inscription/consommateur/googleplus/attempt"

I tried to set it to "http://localhost:8888/inscription/consommateur/googleplus/attempt?parrain_id=*" but it didn't work.

Someone has an idea?