Вопрос

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