From 6eb070ff4d906604a104007f8026d04bb6b9ea21 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Sun, 17 Dec 2023 21:34:21 +0100 Subject: [PATCH] fix incorrect usage of ssl_channel_credentials Signed-off-by: Jens Langhammer --- authentik/stages/authenticator_mobile/cloud_gateway.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/authentik/stages/authenticator_mobile/cloud_gateway.py b/authentik/stages/authenticator_mobile/cloud_gateway.py index 0024d899d..3d7679eb0 100644 --- a/authentik/stages/authenticator_mobile/cloud_gateway.py +++ b/authentik/stages/authenticator_mobile/cloud_gateway.py @@ -69,7 +69,7 @@ def get_enterprise_token() -> str: @lru_cache() def get_client(addr: str): """get a cached client to a cloud-gateway""" - channel = secure_channel(addr, ssl_channel_credentials) + channel = secure_channel(addr, ssl_channel_credentials()) if settings.DEBUG: channel = insecure_channel(addr) channel = intercept_channel(addr, AuthInterceptor(get_enterprise_token()))