authentik/passbook/factors/dummy/factor.py

13 lines
372 B
Python
Raw Normal View History

"""passbook multi-factor authentication engine"""
2019-10-07 15:33:48 +01:00
from django.http import HttpRequest
2019-10-07 15:33:48 +01:00
from passbook.factors.base import AuthenticationFactor
class DummyFactor(AuthenticationFactor):
"""Dummy factor for testing with multiple factors"""
2019-10-07 15:33:48 +01:00
def post(self, request: HttpRequest):
"""Just redirect to next factor"""
return self.authenticator.user_ok()