Skip to main content

OAuthLib for Sanic, ported from Flask-OAuthLib

Project description

Wheel Status Latest Version Travis CI Status Coverage Status

Sanic-OAuthlib is an extension to Sanic that allows you to interact with remote OAuth enabled applications. On the client site, it is a replacement for Sanic-OAuth. But it does more than that, it also helps you to create OAuth providers.

Sanic-OAuthlib is a fork of Flask-OAuthlib, ported to sanic using the SanicPluginsFramework.

Sanic-OAuthlib relies on oauthlib.

Features

(These features are directly ported from Flask-OAuthLib)

  • Support for OAuth 1.0a, 1.0, 1.1, OAuth2 client

  • Friendly API (same as Sanic-OAuth)

  • Direct integration with Sanic using SanicPluginsFramework

  • Basic support for remote method invocation of RESTful APIs

  • Support OAuth1 provider with HMAC and RSA signature

  • Support OAuth2 provider with Bearer token

And request more features at github issues.

Security Reporting

If you found security bugs which can not be public, send me email at ashleysommer@gmail.com. Attachment with patch is welcome.

Installation

Installing sanic-oauthlib is simple with pip:

$ pip install Sanic-OAuthlib

If you don’t have pip installed, try with easy_install:

$ easy_install Sanic-OAuthlib

Additional Notes

See the original documentation for Flask-OAuthlib here: flask-oauthlib@readthedocs.

If you are only interested in the client part, you can find some examples in the example directory.

There is also a development version on GitHub.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Sanic-OAuthlib-0.4.0.tar.gz (190.8 kB view hashes)

Uploaded Source

Built Distribution

Sanic_OAuthlib-0.4.0-py3-none-any.whl (177.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page