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.

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 py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page