Rest extension of PyOTP python library, Here OTP generation and Verification is done via DRF APIs.
- This library uses PyOTP library for generating and verifying one-time passwords.Here OTP generation and Verification is done via DRF APIs.
- The main focus is to open an API for OTP Generation & Verification.
- Supports Python2.7+, Django 1.8+
pip install drf-pyotp
Add rest_pyotp app in your installed apps:
INSTALLED_APPS = ( ... 'rest_pyotp', )
Run migrations using:
python manage.py migrate
Add Urls in your url file:
url(r'', include('rest_pyotp.routers', namespace='rest-pyotp-urls')),
- I have used swagger-spec for documenting APIs. You can find out APIs swagger docs here
- If anyone wish to contribute in improving this library then he is most welcome, due credit will be given to every individual.