This repository has been archived on 2024-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
2018-12-14 08:49:34 +00:00
|
|
|
"""passbook multi-factor authentication engine"""
|
2019-10-07 14:33:48 +00:00
|
|
|
from django.http import HttpRequest
|
2018-12-14 08:49:34 +00:00
|
|
|
|
2020-05-07 19:30:52 +00:00
|
|
|
from passbook.flows.factor_base import AuthenticationFactor
|
2018-12-14 08:49:34 +00:00
|
|
|
|
|
|
|
|
|
|
|
class DummyFactor(AuthenticationFactor):
|
|
|
|
"""Dummy factor for testing with multiple factors"""
|
|
|
|
|
2019-10-07 14:33:48 +00:00
|
|
|
def post(self, request: HttpRequest):
|
2018-12-14 08:49:34 +00:00
|
|
|
"""Just redirect to next factor"""
|
|
|
|
return self.authenticator.user_ok()
|