Skip to main content

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


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)

Uploaded Source

Built Distribution

zemfrog_auth-1.0.3-py3-none-any.whl (5.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page