mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-08-08 09:08:34 +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(),
|
client_credential=self.config.clientSecret.get_secret_value(),
|
||||||
authority=self.config.authorityURI + self.config.tenantId,
|
authority=self.config.authorityURI + self.config.tenantId,
|
||||||
)
|
)
|
||||||
self.auth_token = self.get_auth_token()
|
|
||||||
client_config = ClientConfig(
|
client_config = ClientConfig(
|
||||||
base_url="https://api.powerbi.com",
|
base_url="https://api.powerbi.com",
|
||||||
api_version="v1.0",
|
api_version="v1.0",
|
||||||
auth_token=lambda: self.auth_token,
|
auth_token=self.get_auth_token,
|
||||||
auth_header="Authorization",
|
auth_header="Authorization",
|
||||||
allow_redirects=True,
|
allow_redirects=True,
|
||||||
retry_codes=[429],
|
retry_codes=[429],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user