php - Google + login integration prompt -


i'm working on google + sign in integration php project. followed steps given in link https://developers.google.com/+/web/signin/.

every thing works fine. problem is, while creating project in google api gave redirect url. upon directing url, lock user's information unto database coming google+. since login done through prompt, getting closed after logging in , not redirected "redirect url" given while creating project. how in prompted window , refresh current page user logged in.

when signing in using javascript, no longer need perform redirect in same way traditionally needed in oauth 2.0 flows unless using non javascript flow, redirect uris not important. javascript client return credentials when user signs first time can exchanged server enable access you're trying get.

the php quickstart sample shows how perform of steps need:

https://developers.google.com/+/quickstart/php

this sample show how use postmessage style response google+ sign-in button , allow use javascript redirect getting access credentials server.


Comments

Popular posts from this blog

matlab - Deleting rows with specific rules -

jquery - How would i go about shortening this code? And to cancel the previous click on click of new section? -