Can I use google authentication without using Google APIs client library for Python?

StackOverflow https://stackoverflow.com//questions/23045530

  •  21-12-2019
  •  | 
  •  

Вопрос

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.

Это было полезно?

Решение

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.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top