Skip to main content

Authentication views for Keg

Project description

https://circleci.com/gh/level12/keg-login.svg?style=svg https://codecov.io/github/level12/keg-login/coverage.svg?branch=master

Base views and forms for user login and password management in Keg applications.

Usage

There are 5 base views to allow users to login, logout and set their passwords.

  • Login

  • Logout

  • ChangePassword

  • ForgotPassword

  • ResetPassword

To make use of these views in your application, subclass the appropriate view and it’s contained Responder class and implement the pure virtual methods.

You may override the templates used for these views by creating the appropriately named template under <my application>/templates/keg-login/ or overriding template in your Responder subclass

Example

from keg import Keg
from keg_login.ext import KegLogin
from keg_login import views

app = Keg(__name__)
KegLogin(app)

class ForgotPassword(views.ForgotPassword):
    class Responder(views.ForgotPassword.Responder):
        def request_password_reset(self, email):
            generate_token_and_send_email(email)

Development

Branches & State

  • master: our “production” branch

All other branches are feature branches.

Environment

Install requirements:

$ pip install --use-wheel --no-index --find-links=requirements/wheelhouse -r requirements/dev-env.txt $ pip install -e .

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

KegLogin-0.5.0.tar.gz (11.9 kB view details)

Uploaded Source

Built Distribution

KegLogin-0.5.0-py2.py3-none-any.whl (17.4 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file KegLogin-0.5.0.tar.gz.

File metadata

  • Download URL: KegLogin-0.5.0.tar.gz
  • Upload date:
  • Size: 11.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for KegLogin-0.5.0.tar.gz
Algorithm Hash digest
SHA256 75b1ca342b2826e589a9c1ba0dc1091bcdce3b66784168ee77fc1f4f96ff0d88
MD5 256bee780236a01ebfb8f424e1ca2e50
BLAKE2b-256 a15173082f4cac9037c85ac8551bc102b01aa87362f22c2fa931a5220e38bdcb

See more details on using hashes here.

File details

Details for the file KegLogin-0.5.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for KegLogin-0.5.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 595bafd250fe87eaa9983f0b9f423c9317929ef8d941b7eae4ae06ce5f52b395
MD5 9b4657410ee3fe31f636f312cd7e836d
BLAKE2b-256 6caae6b89b43deec17c769f2b7b0a0d8b1575cbe0ca40dabeac146e838f1bd67

See more details on using hashes here.

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