jeudi 18 janvier 2018

google+ api not using port number on redirect (Laravel Socialite)

On my Google API page I have the following redirect URL set-up:

http://localhost:8002/callback/google

When I attempt the login I get a 400 error from Google:

Error: redirect_uri_mismatch

The redirect URI in the request, http://localhost/callback/google, does not match the ones authorized for the OAuth client.

Well, of course, it doesn't match because the port number 8002 seems to have been removed by Google. Yet when I go back to the control panel the redirect URL shows the port number still in the URL just fine.

Doe's anyone know whats happening here? How do I ensure the port number is kept during the redirect?



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2BcoaxM
via IFTTT

Aucun commentaire:

Enregistrer un commentaire