Pregunta

When using the google+ authentication such as the example here: https://developers.google.com/+/quickstart/php#next_steps

I cannot seem to find how to redirect users after successful authentication to a landing page?

Does anyone know where this would be done? It looks like from this example is that redirection would be done client side once the token has been issued (and after storing a session variable)

Thanks

¿Fue útil?

Solución

In that particular flow the redirect happens at header('Location: ' . filter_var($redirect, FILTER_SANITIZE_URL)); in step four. The user has finished authenticating and you can send them wherever you want.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top