mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-08-08 00:58:06 +00:00
Minor: Fix Powerbi refresh token on expire (#18774)
Co-authored-by: Mayur Singal <39544459+ulixius9@users.noreply.github.com>
This commit is contained in:
parent
d6470b7800
commit
f40138a56e
@ -64,11 +64,10 @@ class PowerBiApiClient:
|
||||
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],
|
||||
|
Loading…
x
Reference in New Issue
Block a user