Tuesday, 15 February 2011

javascript - Google+ Sign-In with PHP -



javascript - Google+ Sign-In with PHP -

i'm bit confused. trying provide simple google authentication sign-on.

i utilize google's recommended method using client-side flow: https://developers.google.com/+/web/signin/add-button

if utilize method, how maintain user logged in move page page. know can't create php session via javascript.

how can utilize client-side flow , maintain user signed in. using php on server.

after spending few weeks researching, understand cannot set php session variable , stop using oauth2. realize need info google, must prove have still authenticated user.

also, have come understand unless forcefulness prompt, google not resend refresh-token. provide best user experience, must capture token @ first login , re-use token create calls without having forcefulness prompt. token must stored in secured location such database each user.

javascript php session authentication login

No comments:

Post a Comment