fix incorrect usage of ssl_channel_credentials

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
Jens Langhammer 2023-12-17 21:34:21 +01:00
parent 36bd3858e4
commit 6eb070ff4d
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -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()))