Question

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

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top