Programming Web Services and APIs
There are usually three roles involved in OAuth implementations:
- Resource owner: The user that grants access to their data (or some of it).
- Third-party application: The website or application that wants to access the resource owner’s data.
- Resource server: The server that holds the resource owner’s data, which is exposed through APIs.
Log In With the Google OAuth Demo App
Step-by-step implementation of Google OAuth 2.0
GIT repositories related with OAuth
A Python library for accessing resources protected by OAuth 2.0.
oauth2client is now deprecated. No more features will be added to the libraries and the core team is turning down support.
Google recommends you use google-auth and oauthlib.
For more details on the deprecation, see oauth2client deprecation.
OAuthLib is a generic, spec-compliant, thorough implementation of the OAuth request-signing logic for Python 3.5+.
OAuthLib is a framework which implements the logic of OAuth1 or OAuth2 without assuming a specific HTTP request object or web framework. Full documentation is available on Read the Docs.
google-auth is the Google authentication library for Python. This library provides the ability to authenticate to Google APIs using various methods. It also provides integration with several HTTP libraries. Full documentation is available on Read the Docs.
Flask-OAuth is an extension to Flask that allows you to interact with remote OAuth enabled applications. Currently it only implements the consumer interface so you cannot expose your own API with OAuth.
Flak-OAuth depends on the python-oauth2 module.
Flask-OAuth is currently unmaintained. If you want to add OAuth support to your Flask website, we recommend using Flask-Dance instead, which is actively maintained.