sanic-jwt-1.8.0
توضیحات
JWT oauth flow for Sanic
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | sanic-jwt-1.8.0 |
| نام | sanic-jwt |
| نسخه کتابخانه | 1.8.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Adam Hopkins |
| ایمیل نویسنده | admhpkns@gmail.com |
| آدرس صفحه اصلی | https://github.com/ahopkins/sanic-jwt |
| آدرس اینترنتی | https://pypi.org/project/sanic-jwt/ |
| مجوز | MIT |
# Sanic JWT
[](https://pypi.python.org/pypi/sanic-jwt)
[](https://pypi.python.org/pypi/sanic-jwt)
[](https://pypi.python.org/pypi/sanic-jwt)
[](https://raw.githubusercontent.com/ahopkins/sanic-jwt/dev/LICENSE)
[](https://travis-ci.org/ahopkins/sanic-jwt)
[](http://sanic-jwt.readthedocs.io/en/latest/?badge=latest)
[](https://www.codacy.com/app/ahopkins/sanic-jwt?utm_source=github.com&utm_medium=referral&utm_content=ahopkins/sanic-jwt&utm_campaign=Badge_Grade)
[](https://codecov.io/gh/ahopkins/sanic-jwt)
[](https://github.com/ambv/black)
Sanic JWT adds authentication protection and endpoints to [Sanic].
It is both **easy** to get up and running, and **extensible** for the
developer. It can act to **protect endpoints** and also provide **authentication scoping**, all wrapped into a nice [JWT].
[Read the documentation](http://sanic-jwt.rtfd.io/) | [View the source code](https://github.com/ahopkins/sanic-jwt/)
------
**What do I do?**
It's easy: (1) install, (2) initialize, and (3) authenticate.
**Install:**
```
pip install sanic-jwt
```
[Sanic]: http://sanic.readthedocs.io
[JWT]: https://jwt.io
**Initialize:**
```python
from sanic import Sanic
from sanic_jwt import Initialize
def my_authenticate(request, *args, **kwargs):
...
app = Sanic()
Initialize(
app,
authenticate=my_authenticate
)
```
**Authenticate:**
http://localhost/auth
------
**Can I customize it?**
Definitely! Sanic JWT is made to allow developers to customize the operation to fit their needs. [Check out the documentation](http://sanic-jwt.rtfd.io/) to learn how.
نیازمندی
| مقدار | نام |
|---|---|
| <3.0.0,>=2.1.0 | pyjwt |
| - | Sphinx |
| <3.1 | Jinja2 |
| - | Sphinx |
| <3.1 | Jinja2 |
نحوه نصب
نصب پکیج whl sanic-jwt-1.8.0:
pip install sanic-jwt-1.8.0.whl
نصب پکیج tar.gz sanic-jwt-1.8.0:
pip install sanic-jwt-1.8.0.tar.gz