Skip to main content

Registration with confirmation by code and token authorization

Project description

Django приложение аутентификации

Конфигурация

Подключение приложения

INSTALLED_APPS = [
    'auth_satvadev',
]

Использование классов аутентификации

Для использования необходимо задать переменную в settings.py:

SENDER_CLASS = 'SenderClassName'

, где SenderClassName название класса для отправления и валидации кода подтверждения из списка:

'MailSender',

Также, необходимо добавить URL's аутентификации в urls.py проекта:

urlpatterns = [
    ...
    path(
        'api/auth-satvadev/',
        include(('auth_satvadev.api.urls', 'auth_satvadev'))
    ),
    ...
]

Для запросов авторизации используются пути: 'api/auth-satvadev/jwt/' - для получения JWT токена 'api/auth-satvadev/jwt/refresh/' - обновления JWT токена 'api/auth-satvadev/reset-password/' - для запроса на восстановление пароля 'api/auth-satvadev/reset-password/confirm/' - для проверки кода подтверждения

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

auth_satvadev-1.0.4.tar.gz (6.1 kB view details)

Uploaded Source

Built Distribution

auth_satvadev-1.0.4-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

Details for the file auth_satvadev-1.0.4.tar.gz.

File metadata

  • Download URL: auth_satvadev-1.0.4.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.17

File hashes

Hashes for auth_satvadev-1.0.4.tar.gz
Algorithm Hash digest
SHA256 57809ac076b572204d9f25ad3c11ff99a43794b6dcc816e9b1bf2d65378664a7
MD5 6b45d5443ca511af6e85a4508cd0d8bb
BLAKE2b-256 aebdca33cc7006498c63adc2305b18be6fff253d7459d8e21ab1149de731af2c

See more details on using hashes here.

File details

Details for the file auth_satvadev-1.0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for auth_satvadev-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 6c7e202e6b3e14c4851c6545d3f94f4e16387b61e1fdfe6037e5a2659c4468fe
MD5 78441c1ecf311f2d504cbedc047b18a8
BLAKE2b-256 f16d34f1a3dfcf2d450f8e7caabf5e6d27fdacfd731c27a36fdb8df8f8f68e39

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