Files
authentik/passbook/core/auth/factors/dummy.py
2019-10-01 10:24:10 +02:00

15 lines
391 B
Python

"""passbook multi-factor authentication engine"""
from structlog import get_logger
from passbook.core.auth.factor import AuthenticationFactor
LOGGER = get_logger(__name__)
class DummyFactor(AuthenticationFactor):
"""Dummy factor for testing with multiple factors"""
def post(self, request):
"""Just redirect to next factor"""
return self.authenticator.user_ok()