Authentication for the zemfrog framework
Project description
zemfrog-auth
Authentication for the zemfrog framework
Currently only supports JWT (JSON Web Token) authentication.
Features
- JWT Authentication Blueprint
- Event signal support for user information (login, register, etc)
Usage
Install the module
pip install zemfrog-auth
Add jwt blueprints to your zemfrog application
BLUEPRINTS = ["zemfrog_auth.jwt"]
Using event signals
In this section I will give an example of using the event signal using a blinker.
# Add this to wsgi.py
from zemfrog_auth.signals import on_user_logged_in
@on_user_logged_in.connect
def on_logged_in(user):
print("Signal user logged in:", user)
For a list of available signals, you can see it here. For signal documentation you can visit here.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file zemfrog-auth-1.0.3.tar.gz.
File metadata
- Download URL: zemfrog-auth-1.0.3.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.5 CPython/3.6.9 Linux/5.4.0-70-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
106a72c0b31752b7e297e8e1dfd675c615a375efb26439f035ecc1ea59767f24
|
|
| MD5 |
f3027fa4feb1449e406bb67f679bfac8
|
|
| BLAKE2b-256 |
e265e3dc8c9267684885e83fab4b60c95676d2cd206b3c891af0e0c362f20a69
|
File details
Details for the file zemfrog_auth-1.0.3-py3-none-any.whl.
File metadata
- Download URL: zemfrog_auth-1.0.3-py3-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.5 CPython/3.6.9 Linux/5.4.0-70-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6dcbb685a4325ba0c3cb207d2bca12da97b33bb9b8af5a69b06c89510b1f7858
|
|
| MD5 |
7d16c4183db25ca8bfb81bcf10156aba
|
|
| BLAKE2b-256 |
d6d599ab18d49e123a79ebc9e0b114496f2a9b7e7d95e10dd3e85e8d3ef71c63
|