Y
Y
Ytsu Ytsuevich2015-05-01 16:45:23
Google
Ytsu Ytsuevich, 2015-05-01 16:45:23

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:
7c2caa47c03f400fa18ac6218e1064b7.PNG
Test site: hfb7989r.bget.ru/api/auth/google
5eeaa9424d784c368c6f21c3372b370a.PNG
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

2 answer(s)
D
Dmitry, 2015-05-01
@kofon

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

Y
Ytsu Ytsuevich, 2015-05-02
@kofon

People, Dmitry, look, please, with such rights you can get an email address. mail?
c21ea74b93ee4f7eb0e9e533179a15f3.PNG

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question