from django.conf import settings
from django.urls import path

app_name = "duo_auth"

if hasattr(settings, "DUO_LEGACY_PROMPT") and settings.DUO_LEGACY_PROMPT:
    from .legacy_views import DuoAuthView
    urlpatterns = [
        path('login/', DuoAuthView.as_view(), name="duo_login"),
    ]
else:
    from .views import DuoAuthView, DuoCallbackView
    urlpatterns = [
        path('login/', DuoAuthView.as_view(), name="duo_login"),
        path('callback/', DuoCallbackView.as_view(), name="duo_callback"),
    ]

97ef4cd920c88525fc33dc213579742b345b5ee5
<mask token>

<mask token>
if hasattr(settings, 'DUO_LEGACY_PROMPT') and settings.DUO_LEGACY_PROMPT:
    from .legacy_views import DuoAuthView
    urlpatterns = [path('login/', DuoAuthView.as_view(), name='duo_login')]
else:
    from .views import DuoAuthView, DuoCallbackView
    urlpatterns = [path('login/', DuoAuthView.as_view(), name='duo_login'),
        path('callback/', DuoCallbackView.as_view(), name='duo_callback')]

<mask token>
app_name = 'duo_auth'
if hasattr(settings, 'DUO_LEGACY_PROMPT') and settings.DUO_LEGACY_PROMPT:
    from .legacy_views import DuoAuthView
    urlpatterns = [path('login/', DuoAuthView.as_view(), name='duo_login')]
else:
    from .views import DuoAuthView, DuoCallbackView
    urlpatterns = [path('login/', DuoAuthView.as_view(), name='duo_login'),
        path('callback/', DuoCallbackView.as_view(), name='duo_callback')]

from django.conf import settings
from django.urls import path
app_name = 'duo_auth'
if hasattr(settings, 'DUO_LEGACY_PROMPT') and settings.DUO_LEGACY_PROMPT:
    from .legacy_views import DuoAuthView
    urlpatterns = [path('login/', DuoAuthView.as_view(), name='duo_login')]
else:
    from .views import DuoAuthView, DuoCallbackView
    urlpatterns = [path('login/', DuoAuthView.as_view(), name='duo_login'),
        path('callback/', DuoCallbackView.as_view(), name='duo_callback')]

from django.conf import settings
from django.urls import path

app_name = "duo_auth"

if hasattr(settings, "DUO_LEGACY_PROMPT") and settings.DUO_LEGACY_PROMPT:
    from .legacy_views import DuoAuthView
    urlpatterns = [
        path('login/', DuoAuthView.as_view(), name="duo_login"),
    ]
else:
    from .views import DuoAuthView, DuoCallbackView
    urlpatterns = [
        path('login/', DuoAuthView.as_view(), name="duo_login"),
        path('callback/', DuoCallbackView.as_view(), name="duo_callback"),
    ]
