Skip to content

Commit

Permalink
Minor: Fix Powerbi refresh token on expire (open-metadata#18774)
Browse files Browse the repository at this point in the history
Co-authored-by: Mayur Singal <[email protected]>
  • Loading branch information
SumanMaharana and ulixius9 authored Nov 25, 2024
1 parent d6470b7 commit f40138a
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand Down

0 comments on commit f40138a

Please sign in to comment.