Skip to content

Commit c04bdd0

Browse files
committed
updated token for AAS
1 parent 14915e4 commit c04bdd0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sempy_labs/tom/_model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def __init__(self, dataset, workspace, readonly, token_provider):
9393
if match:
9494
region = match.group(1)
9595
token = token_provider(audience="asazure", region=region)
96-
connection_str = f'Provider=MSOLAP;Data Source={self._workspace_name};Password="{token.token}";Persist Security Info=True;Impersonation Level=Impersonate'
96+
connection_str = f'Provider=MSOLAP;Data Source={self._workspace_name};Password="{token}";Persist Security Info=True;Impersonation Level=Impersonate'
9797
self._tom_server = TOM.Server()
9898
self._tom_server.Connect(connection_str)
9999
# Service Principal Authentication for Power BI via token provider

0 commit comments

Comments
 (0)