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.1.0.post1.tar.gz (35.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

Sanic_OAuthlib-0.1.0.post1-py2.py3-none-any.whl (36.6 kB view details)

Uploaded Python 2Python 3

File details

Details for the file Sanic-OAuthlib-0.1.0.post1.tar.gz.

File metadata

  • Download URL: Sanic-OAuthlib-0.1.0.post1.tar.gz
  • Upload date:
  • Size: 35.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.6.8

File hashes

Hashes for Sanic-OAuthlib-0.1.0.post1.tar.gz
Algorithm Hash digest
SHA256 e9037fbe8160c13a02c38d1385c245773530964a2fc012f213a71e456eec2585
MD5 2227bfa36d1205148f473bdc3edeeee9
BLAKE2b-256 e6fa8455e85ad8b7db297fdd0a2ce32a6becdcf075c8dae5d133900c40f3be1c

See more details on using hashes here.

File details

Details for the file Sanic_OAuthlib-0.1.0.post1-py2.py3-none-any.whl.

File metadata

  • Download URL: Sanic_OAuthlib-0.1.0.post1-py2.py3-none-any.whl
  • Upload date:
  • Size: 36.6 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.6.8

File hashes

Hashes for Sanic_OAuthlib-0.1.0.post1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 4eb0f25461687356c1aea05b4ca2e7c1217d9a346b70f0ad0d0010ef543ae8a2
MD5 4a82b93e69c0343ad5372a7b47bcb854
BLAKE2b-256 2c02aeb8f54a5220b1ea168399c35a5eb2e0e7d609dae2533fd1771f71ab3eeb

See more details on using hashes here.

Supported by

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