Commit 4eea6fc0 authored by Lukas Burgey's avatar Lukas Burgey
Browse files

Remove token authentication

parent c3c2c7cd
...@@ -46,7 +46,6 @@ INSTALLED_APPS = [ ...@@ -46,7 +46,6 @@ INSTALLED_APPS = [
'django.contrib.messages', 'django.contrib.messages',
'django.contrib.staticfiles', 'django.contrib.staticfiles',
'rest_framework', 'rest_framework',
'rest_framework.authtoken',
'django_backend.backend', 'django_backend.backend',
'corsheaders', 'corsheaders',
'django_mysql', 'django_mysql',
...@@ -112,7 +111,6 @@ AUTHENTICATION_BACKENDS = [ ...@@ -112,7 +111,6 @@ AUTHENTICATION_BACKENDS = [
REST_FRAMEWORK = { REST_FRAMEWORK = {
'DEFAULT_AUTHENTICATION_CLASSES': [ 'DEFAULT_AUTHENTICATION_CLASSES': [
'django_backend.backend.auth.v1.auth_class.CsrfExemptSessionAuthentication', 'django_backend.backend.auth.v1.auth_class.CsrfExemptSessionAuthentication',
'rest_framework.authentication.TokenAuthentication',
], ],
'DEFAULT_PERMISSION_CLASSES': [ 'DEFAULT_PERMISSION_CLASSES': [
'rest_framework.permissions.IsAuthenticated', 'rest_framework.permissions.IsAuthenticated',
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment