Question

I'm implementing Google Authentication on my website

https://developers.google.com/+/web/signin/server-side-flow

Can I implement it without installing the Google API ("Step 8: Initialize the Google API client library and start the Google+ service")?

For Facebook authentication I communicate directly with Facebook, for example

url = "https://graph.facebook.com/me/friends/?access_token="+access_token
response = urllib2.urlopen(url)

I'm hoping for something similar for Google.

Was it helpful?

Solution

Yes, Google offers OAuth2 authentication which should do what you want.

Here's the documentation: https://developers.google.com/accounts/docs/OAuth2

Although I would recommend using a oauth2 library to authenticate instead of reinventing the wheel.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top