OBytes django application for managing OTP (OneTruePairing) for authentication, registration and changing phone number.
Project description
OBytes Django OTP App
OTP is a Django app to conduct Web-based one true pairing, for authentication, registration and changing phone number.
Quick start
-
Install
ob_dj_otp
latest versionpip install ob_dj_otp
-
Add "ob_dj_otp" to your
INSTALLED_APPS
setting like this:
# settings.py
INSTALLED_APPS = [
...
"ob_dj_otp",
]
# Setting Twilio as SMS Provider
OTP_PROVIDER = os.environ.get("OTP_PROVIDER", "twilio")
# Passing Twilio Verify Service-ID
OTP_TWILIO_SERVICE = os.environ.get("OTP_PROVIDER")
- Include the OTP URLs in your project urls.py like this::
path("otp/", include("ob_dj_otp.apis.otp.urls")),
- Run
python manage.py migrate
to create the otp models.
Developer Guide
After cloning the repo locally, install all dependencies using pipenv install --dev
, run pytest
to run all tests.
Developers can also use docker-compose
to run the project locally, docker-compose build && docker-compose run app bash
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
Built Distribution
File details
Details for the file ob-dj-otp-0.0.8.tar.gz
.
File metadata
- Download URL: ob-dj-otp-0.0.8.tar.gz
- Upload date:
- Size: 8.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 46020b724492f6e210c2dbb697f8103eb23c62aeb30e9c13046289302feae5b4 |
|
MD5 | ce270adbafb0ae2fb0b1cc107446026c |
|
BLAKE2b-256 | f2afccdbce40dbb0f2ef8ed72d9dee91cda8ac862375b7c927d7cfac58fc1bd7 |
File details
Details for the file ob_dj_otp-0.0.8-py3-none-any.whl
.
File metadata
- Download URL: ob_dj_otp-0.0.8-py3-none-any.whl
- Upload date:
- Size: 11.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cd5d68876dd6ab384c6a66de3be425fe102873b0afee43711311ed24476b4820 |
|
MD5 | 574fa8f75328582ea8de7168842527a5 |
|
BLAKE2b-256 | f44a6b2fe58d1119d779cb0c11547d9f339a052d2370af1255068534249bbe35 |