Skip to content
Snippets Groups Projects
Commit f809563f authored by Steve Weber's avatar Steve Weber 💠
Browse files

include oidc

parent fb448b5e
No related branches found
No related tags found
No related merge requests found
......@@ -33,7 +33,6 @@ except:
api_router = routers.SimpleRouter()
api_router.register(r'projects', api.PublicProjectViewSet)
urlpatterns = [
#path('', include('oidc_auth.urls')),
path('', include(custom_url_patterns)),
path('', views.IndexView.as_view(), name='index'),
#path('hooks/', include('hooks.urls')),
......@@ -76,6 +75,7 @@ def oidc_admin_logout(request):
return redirect(reverse_lazy(settings.LOGOUT_URL))
if hasattr(settings, 'OIDC_CLIENTS'):
urlpatterns = [
path('', include('oidc_auth.urls')),
path('admin/login/', oidc_admin_login),
path('admin/logout/', oidc_admin_logout),
] + urlpatterns
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment