inforian / drf-pyotp Goto Github PK
View Code? Open in Web Editor NEWpyotp extension for Django Rest Framework
License: Other
pyotp extension for Django Rest Framework
License: Other
Hi, I was wondering if the application could use variables defined in the settings.py file of the external application(or using defaults set by the system) rather than specifying it when making requests.
For making requests for TOTP:
{
"time": 0
}
and that of HOTP:
{
"count": 0
}
could be represented by obtaining these values from the settings file as:
OTP_TIME_EXP = 300 #set the OTP expiry time to 300s
OTP_TYPE = 'totp' # sets the type of OTP(either TOTP or HOTP)
#for the case of HOTP
HOTP_COUNT = 5 #set the Hotp counter to 5
where obviously, default values can be set in the application in case these variables are not set in the external application.
I can go ahead and create aPR if this is approved
a changelog based on semantic versioning should be added to track versions of the system. preferably automated
Hi, is this project still being maintained? Realised there hasn't been any activity in 3 years! However, would be happy to add a contributing.md for starters if given the go ahead to create a PR ๐
Hi There,
would it be possible to add this line of code within the below files. This helps with Django4.0 and would also work with the older version.
From
from django.utils.translation import ugettext_lazy as _
To
try:
from django.utils.translation import ugettext_lazy as _
except ImportError:
from django.utils.translation import gettext_lazy as _
From
from django.conf.urls import url
To
try:
from django.conf.urls import url
except ImportError:
from django.urls import re_path as url
Project packages/dependencies are outdated and need to be updated to recent versions
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.