Skip to content

inforian/drf-pyotp

Repository files navigation

PyOTP extension for DRF (Django Rest Framework) !

Documentation Status https://travis-ci.org/inforian/drf-pyotp.svg?branch=master https://coveralls.io/repos/github/inforian/drf-pyotp/badge.svg?branch=master
  • 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+

Installation

pip install drf-pyotp

Usage

  • 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')),
    

APIs

  • I have used swagger-spec for documenting APIs. You can find out APIs swagger docs here

Documentation

Contribution

  • If anyone wish to contribute in improving this library then he is most welcome, due credit will be given to every individual.

About

pyotp extension for Django Rest Framework

Topics

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Packages

No packages published

Contributors 5

Languages