Properly remove basic auth

This commit is contained in:
Xeryus Stokkel 2022-01-13 14:35:30 +01:00
parent ac880b7e5b
commit adb2f71aae
Signed by: Xeryus Stokkel
GPG Key ID: 7023C2C891DDE681
3 changed files with 0 additions and 4 deletions

View File

@ -5,7 +5,6 @@ charset-normalizer==2.0.10
cryptography==36.0.1
Deprecated==1.2.13
Django==3.2
django-basicauth==0.5.3
django-oauth-toolkit==1.6.3
django-scim2==0.17.0
gunicorn==20.1.0

View File

@ -51,7 +51,6 @@ MIDDLEWARE = [
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'basicauth.middleware.BasicAuthMiddleware',
'django_scim.middleware.SCIMAuthCheckMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',

View File

@ -1,7 +1,5 @@
from django.utils.decorators import method_decorator
from django.views.generic import TemplateView
from basicauth.decorators import basic_auth_required
@method_decorator(basic_auth_required, name='dispatch')
class AuthView(TemplateView):
template_name = "index.html"