Programming Web Services and APIs
Google APIs
OAuth
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
Using OAuth 2.0 for Web Server Applications
JWT — Incrementiamo la sicurezza con i JSON Web Tokens
GIT repositories related with OAuth
- googleapis/oauth2client
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/oauthlib
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.
- googleapis/google-auth-library-python
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.
- mitsuhiko/flask-oauth
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.