Can I use google authentication without using Google APIs client library for Python?
-
21-12-2019 - |
Pregunta
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.
Solución
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.
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow