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

有帮助吗?

解决方案

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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top