문제

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