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.core.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
-
Clone github repo
git clone [url]
-
pipenv install --dev
-
pre-commit install
-
Run unit tests
pytest
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
ob-dj-otp-0.0.9.tar.gz
(58.2 kB
view details)
Built Distribution
ob_dj_otp-0.0.9-py3-none-any.whl
(15.5 kB
view details)
File details
Details for the file ob-dj-otp-0.0.9.tar.gz
.
File metadata
- Download URL: ob-dj-otp-0.0.9.tar.gz
- Upload date:
- Size: 58.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 675fc35f1bdd9282612637efb54a1e203ff9dfc29346cb9c78ead15023d65881 |
|
MD5 | 329b1e3f3418e4ef43a568c735638f0e |
|
BLAKE2b-256 | b5fabb0d833f5e3e59fc996d640e64b8bceffef7849bca6ef15b72df9ac95c98 |
File details
Details for the file ob_dj_otp-0.0.9-py3-none-any.whl
.
File metadata
- Download URL: ob_dj_otp-0.0.9-py3-none-any.whl
- Upload date:
- Size: 15.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c0db0a05ba67277dda6b33bfcac710ffa4f5999ebd21d8e4589e54ffbb78d78d |
|
MD5 | 9478823d3ebc3b866c897158cdd45fd3 |
|
BLAKE2b-256 | 32f49d9adbe392533cce1c111bb41e6de214b56603140decd0c9d676da485a5f |