Skip to content Skip to sidebar Skip to footer

Get Google Username With Oauth In Xml

I'm having trouble right now getting the username of the logged in Google User. I want to get the Data I need from this Link: https://accounts.google.com/o/oauth2/auth? scope=http

Solution 1:

From your question I think you misunderstand the Oauth2 flow.

You redirect the user to Googles url where the user authenticates himself with his google credentials. So the user authenticates on the google website and not inside your application. This to make sure that a user doesn't have to fill in his credentials in any other application/site then google. When the user has accepted the use of their information by your app google will call your redirect url and provide you with a code which you can use to get the user data. So it is up to you to catch the redirect from Google and request the data you need with the code you get from Google inside the callback (your redirect url).

Also take a look at this image:

enter image description here

Post a Comment for "Get Google Username With Oauth In Xml"