mercredi 24 octobre 2018

Problem with Google Oauth callback url parameters

We have implemented oauth authentication with google in our app with Laravel 5.5.

Today connecting one client we got a problem with the response.

With this uri, the request is empty:

https://example.com/datasources/googleauthcallback?state=SOMESTATE&code=OURGREATCODE&scope=email%20profile%20https://www.googleapis.com/auth/userinfo.profile%20https://www.googleapis.com/auth/userinfo.email%20https://www.googleapis.com/auth/analytics.readonly

dd($request) prints []...

But the same URL without the scope, works...

https://example.com/datasources/googleauthcallback?state=SOMESTATE&code=OURGREATCODE

dd($request) prints state = SOMESTATE and code = OURGREATCODE

In our machines the first URL works correctly, but not the second one.

We think is something about the server configuration, what could be? We use Apache + PHP 7.1



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire