Answer the question
In order to leave comments, you need to log in
Google+ login via OAuth, how does it work?
Has anyone done authentication through Google+ ?
It's just that I've been suffering for 2 days, I don't understand how it works...
Created a project:
Test site: hfb7989r.bget.ru/api/auth/google
I also downloaded a test example, edited ( CLIENT_ID, ... ) and put hfb7989r here. bget.ru/api/auth/google/download
Here's what I expect: On the Login
button , a request will occur, in response I will receive user data ( Name, e-mail, id, etc. info ... ) Right???
I get a token, I don’t know what to do with it further =(
I do not need a user's circle, watched videos on YouTube and other nonsense. I only need registration data.
Never worked with OAuth , just read a little...
PLEASE explain step by step how it works and if I get what I want!!!
Site in PHP .
Answer the question
In order to leave comments, you need to log in
Next
, make a GET request https://www.googleapis.com/plus/v1/people/me
with this token and get mail, name, etc.
read this
https://developers.google.com/+/api/ oauth
https://developers.google.com/+/api/latest/people/get
People, Dmitry, look, please, with such rights you can get an email address. mail?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question