Metadata-Version: 2.1
Name: sanic-oauthlib
Version: 0.3.0
Summary: OAuthLib for Sanic, ported from Flask-OAuthLib
Home-page: https://github.com/ashleysommer/sanic_oauthlib
License: BSD
Author: Ashley Sommer
Author-email: ashleysommer@gmail.com
Requires-Python: >=3.6.1,<4.0.0
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Web Environment
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved
Classifier: License :: OSI Approved :: BSD License
Classifier: License :: Other/Proprietary License
Classifier: Operating System :: POSIX
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: Implementation
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Dist: httpx (>=0.9.3,<1.0.0)
Requires-Dist: oauthlib (==3.1.0)
Requires-Dist: sanic (>=19.12.3,<21)
Requires-Dist: sanic-plugins-framework (>=0.9.5,<1.0)
Requires-Dist: sanic_jinja2_spf (>=0.8.0)
Requires-Dist: sanic_session_spf (>=0.5.1)
Project-URL: Repository, https://github.com/ashleysommer/sanic_oauthlib
Description-Content-Type: text/x-rst

Sanic-OAuthlib
==============

.. image:: https://img.shields.io/pypi/wheel/sanic-oauthlib.svg
   :target: https://pypi.python.org/pypi/sanic-OAuthlib/
   :alt: Wheel Status
.. image:: https://img.shields.io/pypi/v/sanic-oauthlib.svg
   :target: https://pypi.python.org/pypi/sanic-oauthlib/
   :alt: Latest Version
.. image:: https://travis-ci.org/ashleysommer/sanic-oauthlib.svg?branch=master
   :target: https://travis-ci.org/ashleysommer/sanic-oauthlib
   :alt: Travis CI Status
.. image:: https://coveralls.io/repos/ashleysommer/sanic-oauthlib/badge.svg?branch=master
   :target: https://coveralls.io/r/ashleysommer/sanic-oauthlib
   :alt: 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_.

.. _oauthlib: https://github.com/idan/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`_.

.. _`github issues`: https://github.com/ashleysommer/sanic-oauthlib/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

.. _pip: http://www.pip-installer.org/


Additional Notes
----------------

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

.. _`flask-oauthlib@readthedocs`: https://flask-oauthlib.readthedocs.io

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

There is also a `development version <https://github.com/lepture/flask-oauthlib/archive/master.zip#egg=Flask-OAuthlib-dev>`_ on GitHub.

