diff --git a/uvdat/settings.py b/uvdat/settings.py index a8397ba6..60c38343 100644 --- a/uvdat/settings.py +++ b/uvdat/settings.py @@ -47,13 +47,8 @@ def mutate_configuration(configuration: ComposedConfiguration) -> None: 's3_file_field', ] - configuration.AUTHENTICATION_BACKENDS = ( - 'django.contrib.auth.backends.ModelBackend', - 'allauth.account.auth_backends.AuthenticationBackend', - 'guardian.backends.ObjectPermissionBackend', - ) - - configuration.REST_FRAMEWORK['DEFAULT_AUTHENTICATION_CLASSES'] = [ + configuration.AUTHENTICATION_BACKENDS += ['guardian.backends.ObjectPermissionBackend'] + configuration.REST_FRAMEWORK['DEFAULT_AUTHENTICATION_CLASSES'] += [ 'oauth2_provider.contrib.rest_framework.OAuth2Authentication', ] configuration.REST_FRAMEWORK['DEFAULT_PERMISSION_CLASSES'] = [