fix incorrect usage of ssl_channel_credentials
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
parent
63fea84405
commit
49eddd0b75
|
@ -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()))
|
||||
|
|
Reference in New Issue