We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 095d653 commit d68fbdcCopy full SHA for d68fbdc
packages/apps/src/microsoft/teams/apps/token_manager.py
@@ -76,6 +76,7 @@ async def _get_token(
76
# Handle different acquire_token_for_client signatures
77
if isinstance(msal_client, ManagedIdentityClient):
78
# ManagedIdentityClient expects resource as a keyword-only string parameter
79
+ scope = scope.removesuffix("/.default")
80
token_res: dict[str, Any] | None = await asyncio.to_thread(
81
lambda: msal_client.acquire_token_for_client(resource=scope)
82
)
0 commit comments