Forum Discussion
Authenticating with an access token Connect-MicrosoftTeams
- Oct 15, 2021FYI - I raised a ticket, and it should be fixed by mid november.
Issue description:
Cannot properly run Connect-MicrosoftTeams -AccessTokens
Resolution Steps:
Escalated case with our engineering Team
Issue is known bug and currently being fixed
Expecting a fix to go out by NOV mid
Issue description:
Cannot properly run Connect-MicrosoftTeams -AccessTokens
Resolution Steps:
Escalated case with our engineering Team
Issue is known bug and currently being fixed
Expecting a fix to go out by NOV mid
- BJMUKNov 17, 2021Copper ContributorI see 2.6.2-prerelease was added a couple of days ago, however it seems pretty broken. Was this version supposed to resolve this issue (expiry time mismatch)?
- SajAccess4Nov 17, 2021Copper Contributor
- serge2021Nov 17, 2021Copper ContributorI don't see how one or another version of Teams PowerShell client app can make a difference here.
Access tokens are handed out by the Microsoft Identity Platform.
- SajAccess4Nov 16, 2021Copper Contributor
- Andres-BohrenOct 26, 2021Iron ContributorNMLVS good to hear that
- usman83Nov 04, 2021Copper Contributor
Hi,
We were successfully using Microsoft Teams powershell using Access Tokens. But today we are faced with strange issue:
We are getting error during authentication: Connect-MicrosoftTeams
The provided tokens must have less than 180 seconds difference in the time range of expiration. System.Management.Automation.RemoteException: The provided tokens must have less than 180 seconds difference in the time range of expiration.
We have checked the access tokens expiry, they do differ by more then 180 seconds. We are using Refresh tokens to generate Access tokens. This is done automatically using .NET code, both access tokens are fetched within few milliseconds, yet the expiry differs. And when we use these tokens we get above error.
Has anyone experienced this?
Regards,
Muhammad Usman
- serge2021Nov 17, 2021Copper ContributorSame problem here since a couple of days now...
Both Graph and Teams access tokens started obtaining random expiry values instead of previously static 3599 seconds.
As a quick fix, can Microsoft at least disable the tokens expiry difference verification to restore access?
Thanks.