django-trench provides a set of REST API endpoints to supplement django-rest-framework with multi-factor authentication (MFA, 2FA). It supports both standard built-in authentication methods, as well as JWT (JSON Web Token).
Other
274
stars
57
forks
source link
[#215] Add hook to allow customising token challenge response #216
This could possibly be made a bit leaner if the various parts were stored on the view class instance along the way -- mfa_method, dispatch response, etc.
Then they wouldn't need to be passed into the method.
Passes details to a method to create the response used when a code is required.
Allows providing any extra context the application requires.