From 4c57eecdbc71a09aea458fbc96a09703217f530c Mon Sep 17 00:00:00 2001 From: Jakub K Date: Fri, 12 Jan 2024 15:46:58 +0100 Subject: [PATCH] oauth2 start --- izaac/settings.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/izaac/settings.py b/izaac/settings.py index eeff15d..8f673fc 100644 --- a/izaac/settings.py +++ b/izaac/settings.py @@ -41,9 +41,7 @@ CORS_ALLOW_ALL_ORIGINS = True REST_FRAMEWORK = { 'DEFAULT_AUTHENTICATION_CLASSES': [ - 'rest_framework.authentication.SessionAuthentication', - 'rest_framework.authentication.TokenAuthentication', - + 'oauth2_provider.contrib.rest_framework.OAuth2Authentication', ], 'DEFAULT_PERMISSION_CLASSES': [ 'rest_framework.permissions.IsAuthenticated',