From eee73337455f5debe7952e8a08ea294d555edfff Mon Sep 17 00:00:00 2001 From: fit2bot <68588906+fit2bot@users.noreply.github.com> Date: Tue, 16 Dec 2025 11:34:07 +0800 Subject: [PATCH] fix: Integrations services failed to call api (#16441) Co-authored-by: wangruidong <940853815@qq.com> --- apps/jumpserver/settings/libs.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/jumpserver/settings/libs.py b/apps/jumpserver/settings/libs.py index 80d5bb292..a5ec30c9a 100644 --- a/apps/jumpserver/settings/libs.py +++ b/apps/jumpserver/settings/libs.py @@ -2,6 +2,7 @@ # import os import time + from .base import ( REDIS_SSL_CA, REDIS_SSL_CERT, REDIS_SSL_KEY, REDIS_SSL_REQUIRED, REDIS_USE_SSL, REDIS_PROTOCOL, REDIS_SENTINEL_SERVICE_NAME, REDIS_SENTINELS, REDIS_SENTINEL_PASSWORD, @@ -30,8 +31,8 @@ REST_FRAMEWORK = { ), 'DEFAULT_AUTHENTICATION_CLASSES': ( # 'rest_framework.authentication.BasicAuthentication', - 'authentication.backends.drf.SignatureAuthentication', 'authentication.backends.drf.ServiceAuthentication', + 'authentication.backends.drf.SignatureAuthentication', 'authentication.backends.drf.PrivateTokenAuthentication', 'authentication.backends.drf.AccessTokenAuthentication', "oauth2_provider.contrib.rest_framework.OAuth2Authentication",