djaodjin-signup


Namedjaodjin-signup JSON
Version 0.9.5 PyPI version JSON
download
home_page
SummaryDjango app for user authentication
upload_time2024-03-15 05:38:39
maintainer
docs_urlNone
author
requires_python>=3.7
licenseBSD-2-Clause
keywords signup authentication frictionless 2fa mfa otp oauth saml
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            DjaoDjin-Signup
===============

[![PyPI version](https://badge.fury.io/py/djaodjin-signup.svg)](https://badge.fury.io/py/djaodjin-signup)

This repository contains a Django App for frictionless signup.

The app will register and login a user with as little as only an email address.

When the user logs out and tries to logs back in with the same email address,
the app will first verify the email address through an activation url send
to the registered email address. Setting the password is deferred to after
the email address has been verified.

If during the first login and/or subsequent login, the email address should
be verified before moving forward (ex: before presenting a payment view),
you should decorate the view with an *active_required* decorator.

This project contains bare bone templates which are compatible with Django
and Jinja2 template engines. To see djaodjin-signup in action as part
of a full-fledged subscription-based session proxy, take a look
at [djaoapp](https://github.com/djaodjin/djaoapp/).


Install
=======

Add the signup urls to your urlpatterns and EmailOrUsernameModelBackend
to the settings AUTHENTICATION_BACKENDS.

    urls.py:

        urlpatterns = ('',
            (r'^api/', include('signup.urls.api')),
            (r'^', include('signup.urls.views')),

        )

    settings.py:

        AUTHENTICATION_BACKENDS = (
            'signup.backends.auth.EmailOrUsernameModelBackend',
            'django.contrib.auth.backends.ModelBackend'

        )

Development
===========

After cloning the repository, create a virtualenv environment, install
the prerequisites, create and load initial data into the database, then
run the testsite webapp.

    $ python -m venv .venv
    $ source .venv/bin/activate
    $ pip install -r testsite/requirements.txt
    $ make vendor-assets-prerequisites
    $ make initdb
    $ python manage.py runserver

    # Browse http://localhost:8000/

Release Notes
=============

Tested with

- **Python:** 3.7, **Django:** 3.2 ([LTS](https://www.djangoproject.com/download/))
- **Python:** 3.10, **Django:** 4.2 (latest) - see [#55](https://github.com/djaodjin/djaodjin-signup/issues/55)
- **Python:** 2.7, **Django:** 1.11 (legacy) - use testsite/requirements-legacy.txt

0.9.5

  * disables credentials update (ex: for interactive demos)
  * removes deprecated angular.js front-end

0.9.4

  * sends proper signal for password reset
  * adds global settings to require OTP or not
  * adds otp_enabled in json responses
  * supports django_captcha 4.0

[previous release notes](changelog)

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "djaodjin-signup",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": "The DjaoDjin Team <help@djaodjin.com>",
    "keywords": "signup,authentication,frictionless,2fa,mfa,otp,oauth,saml",
    "author": "",
    "author_email": "The DjaoDjin Team <help@djaodjin.com>",
    "download_url": "https://files.pythonhosted.org/packages/cf/ac/cf160e7d581e43690e08b7c75094615821864075103923fa116ce0765234/djaodjin-signup-0.9.5.tar.gz",
    "platform": null,
    "description": "DjaoDjin-Signup\n===============\n\n[![PyPI version](https://badge.fury.io/py/djaodjin-signup.svg)](https://badge.fury.io/py/djaodjin-signup)\n\nThis repository contains a Django App for frictionless signup.\n\nThe app will register and login a user with as little as only an email address.\n\nWhen the user logs out and tries to logs back in with the same email address,\nthe app will first verify the email address through an activation url send\nto the registered email address. Setting the password is deferred to after\nthe email address has been verified.\n\nIf during the first login and/or subsequent login, the email address should\nbe verified before moving forward (ex: before presenting a payment view),\nyou should decorate the view with an *active_required* decorator.\n\nThis project contains bare bone templates which are compatible with Django\nand Jinja2 template engines. To see djaodjin-signup in action as part\nof a full-fledged subscription-based session proxy, take a look\nat [djaoapp](https://github.com/djaodjin/djaoapp/).\n\n\nInstall\n=======\n\nAdd the signup urls to your urlpatterns and EmailOrUsernameModelBackend\nto the settings AUTHENTICATION_BACKENDS.\n\n    urls.py:\n\n        urlpatterns = ('',\n            (r'^api/', include('signup.urls.api')),\n            (r'^', include('signup.urls.views')),\n\n        )\n\n    settings.py:\n\n        AUTHENTICATION_BACKENDS = (\n            'signup.backends.auth.EmailOrUsernameModelBackend',\n            'django.contrib.auth.backends.ModelBackend'\n\n        )\n\nDevelopment\n===========\n\nAfter cloning the repository, create a virtualenv environment, install\nthe prerequisites, create and load initial data into the database, then\nrun the testsite webapp.\n\n    $ python -m venv .venv\n    $ source .venv/bin/activate\n    $ pip install -r testsite/requirements.txt\n    $ make vendor-assets-prerequisites\n    $ make initdb\n    $ python manage.py runserver\n\n    # Browse http://localhost:8000/\n\nRelease Notes\n=============\n\nTested with\n\n- **Python:** 3.7, **Django:** 3.2 ([LTS](https://www.djangoproject.com/download/))\n- **Python:** 3.10, **Django:** 4.2 (latest) - see [#55](https://github.com/djaodjin/djaodjin-signup/issues/55)\n- **Python:** 2.7, **Django:** 1.11 (legacy) - use testsite/requirements-legacy.txt\n\n0.9.5\n\n  * disables credentials update (ex: for interactive demos)\n  * removes deprecated angular.js front-end\n\n0.9.4\n\n  * sends proper signal for password reset\n  * adds global settings to require OTP or not\n  * adds otp_enabled in json responses\n  * supports django_captcha 4.0\n\n[previous release notes](changelog)\n",
    "bugtrack_url": null,
    "license": "BSD-2-Clause",
    "summary": "Django app for user authentication",
    "version": "0.9.5",
    "project_urls": {
        "changelog": "https://github.com/djaodjin/djaodjin-signup/changelog",
        "documentation": "https://djaodjin-signup.readthedocs.io/",
        "repository": "https://github.com/djaodjin/djaodjin-signup"
    },
    "split_keywords": [
        "signup",
        "authentication",
        "frictionless",
        "2fa",
        "mfa",
        "otp",
        "oauth",
        "saml"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "9fd9bb2653c415e1cff0aaf74c1f331d2ba6fd34fb714088e135067744d8b460",
                "md5": "a4a4ee7504b16be3db29b6f2e6b7afba",
                "sha256": "d3516ac5155a27bfe64ded99b269660b376c28fee2ce86a785f57cdbf298f9b8"
            },
            "downloads": -1,
            "filename": "djaodjin_signup-0.9.5-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "a4a4ee7504b16be3db29b6f2e6b7afba",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 162032,
            "upload_time": "2024-03-15T05:38:38",
            "upload_time_iso_8601": "2024-03-15T05:38:38.222949Z",
            "url": "https://files.pythonhosted.org/packages/9f/d9/bb2653c415e1cff0aaf74c1f331d2ba6fd34fb714088e135067744d8b460/djaodjin_signup-0.9.5-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "cfaccf160e7d581e43690e08b7c75094615821864075103923fa116ce0765234",
                "md5": "665fc729663e83db604d2c92fe384866",
                "sha256": "504ca12c162b7d31447700e365133b0b2931dd94730a3c034472da5051ce8e24"
            },
            "downloads": -1,
            "filename": "djaodjin-signup-0.9.5.tar.gz",
            "has_sig": false,
            "md5_digest": "665fc729663e83db604d2c92fe384866",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 98940,
            "upload_time": "2024-03-15T05:38:39",
            "upload_time_iso_8601": "2024-03-15T05:38:39.906425Z",
            "url": "https://files.pythonhosted.org/packages/cf/ac/cf160e7d581e43690e08b7c75094615821864075103923fa116ce0765234/djaodjin-signup-0.9.5.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-03-15 05:38:39",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "djaodjin",
    "github_project": "djaodjin-signup",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "djaodjin-signup"
}
        
Elapsed time: 0.21871s