fix channel creation

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
Jens Langhammer 2023-12-17 23:18:10 +01:00
parent 49eddd0b75
commit 3c59a60152
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -72,6 +72,6 @@ def get_client(addr: str):
channel = secure_channel(addr, ssl_channel_credentials())
if settings.DEBUG:
channel = insecure_channel(addr)
channel = intercept_channel(addr, AuthInterceptor(get_enterprise_token()))
channel = intercept_channel(channel, AuthInterceptor(get_enterprise_token()))
client = AuthenticationPushStub(channel)
return client