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
zemfrog-auth-1.0.3.tar.gz
(4.9 kB
view hashes)
Built Distribution
Close
Hashes for zemfrog_auth-1.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6dcbb685a4325ba0c3cb207d2bca12da97b33bb9b8af5a69b06c89510b1f7858 |
|
MD5 | 7d16c4183db25ca8bfb81bcf10156aba |
|
BLAKE2b-256 | d6d599ab18d49e123a79ebc9e0b114496f2a9b7e7d95e10dd3e85e8d3ef71c63 |