ERROR: AADSTS700024: Client assertion is not within its valid time range

See original GitHub issue

šŸ‘‹ Hi! I’m using the azure/login action for CD and I’m often getting an error when the job execution takes more than a couple of minutes from the initial login.

ERROR: AADSTS700024: Client assertion is not within its valid time range. Current time: 2021-11-26T09:44:41.0193003Z, expiry time of assertion 2021-11-26T09:31:56.0000000Z.

Is there a way to extend the validity of the token via a parameter? The aws-actions/configure-aws-credentials action does it via a role-duration-seconds flag:

The default session duration is 6 hours when using an IAM User to assume an IAM Role […] . If you would like to adjust this you can pass a duration to role-duration-seconds, but the duration cannot exceed the maximum that was defined when the IAM Role was created.

ref: https://github.com/aws-actions/configure-aws-credentials/blob/master/README.md#assuming-a-role

Thank you! šŸ™‡

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:5
  • Comments:57 (7 by maintainers)

github_iconTop GitHub Comments

8reactions
lpalermcommented, Apr 1, 2022

Can this be documented in the federated credentials setup steps? We are having the same issue.

5reactions
matt-FFFFFFcommented, Oct 24, 2022

Still necessary (this is fun šŸ‘)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Client assertion is not within its valid time range error while ...
I am trying to acquire token for from my Azure client App which has Ms Graph permissions set. I am using HttpClient request...
Read more >
Assertion is not within its valid time range in AspNetCore ...
IdToken which will not send the authorization code to the client. Additional information: AADSTS70002: Error validating credentials. AADSTS50013Ā ...
Read more >
Unable to install local agent for on prem D365FO
We are not able to install "Local agent" for on prem D365 FO ... AADSTS700024: Client assertion is not within its valid time...
Read more >
GitHub | SSW Better Software Suggestions
Original 1961 | exception: AADSTS700024: Client assertion is not within its 1962 | valid time range. Current time: 2022-10-20T07:47:12.7446078Z,Ā ...
Read more >
Azure AD Sign-in Error 50013 - ManageEngine
Assertion is invalid because of the following reason - The token issuer doesn't match the API version within its valid time range.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found