OAuthLib for Sanic, ported from Flask-OAuthLib
Project description
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file Sanic-OAuthlib-0.4.0.tar.gz
.
File metadata
- Download URL: Sanic-OAuthlib-0.4.0.tar.gz
- Upload date:
- Size: 190.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b7513bf9c512c84e1aee28539691367cc65788b6b4a8405bb7c0b6610ef2b4ba |
|
MD5 | 9226777d7fd5790d7b2346c833a7b8a5 |
|
BLAKE2b-256 | 5d05b1b551535ed94482b2c6f693c54743deb15eb97c34e1677e63307b76d051 |
File details
Details for the file Sanic_OAuthlib-0.4.0-py3-none-any.whl
.
File metadata
- Download URL: Sanic_OAuthlib-0.4.0-py3-none-any.whl
- Upload date:
- Size: 177.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 389f036fd48ce3d8496db9a2104f3a0465b70d3633d74f482a778fd1a8e8ba98 |
|
MD5 | 05eca9fffe71f41fce3923a03229c80c |
|
BLAKE2b-256 | 80ea3b69714ed4ad22502fd69bba3beb100efa7b2bf64df64a870e111b1778e9 |