From f40138a56e7901ee854225d7c097a2c826a9861c Mon Sep 17 00:00:00 2001 From: Suman Maharana Date: Mon, 25 Nov 2024 23:19:30 +0530 Subject: [PATCH] Minor: Fix Powerbi refresh token on expire (#18774) Co-authored-by: Mayur Singal <39544459+ulixius9@users.noreply.github.com> --- .../src/metadata/ingestion/source/dashboard/powerbi/client.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ingestion/src/metadata/ingestion/source/dashboard/powerbi/client.py b/ingestion/src/metadata/ingestion/source/dashboard/powerbi/client.py index 51da219b97c9..d1acc7901ac9 100644 --- a/ingestion/src/metadata/ingestion/source/dashboard/powerbi/client.py +++ b/ingestion/src/metadata/ingestion/source/dashboard/powerbi/client.py @@ -64,11 +64,10 @@ def __init__(self, config: PowerBIConnection): client_credential=self.config.clientSecret.get_secret_value(), authority=self.config.authorityURI + self.config.tenantId, ) - self.auth_token = self.get_auth_token() client_config = ClientConfig( base_url="https://api.powerbi.com", api_version="v1.0", - auth_token=lambda: self.auth_token, + auth_token=self.get_auth_token, auth_header="Authorization", allow_redirects=True, retry_codes=[429],