Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

azure login issue: RuntimeError: 0. The ID token is not yet valid. Current epoch = 1639932228. #20778

Closed
ahm798 opened this issue Dec 19, 2021 · 2 comments
Assignees
Labels
Account az login/account customer-reported Issues that are reported by GitHub users external to the Azure organization.
Milestone

Comments

@ahm798
Copy link

ahm798 commented Dec 19, 2021

This is autogenerated. Please review and update as needed.

Describe the bug

Command Name
az login

Errors:

The command failed with an unexpected error. Here is the traceback:
0. The ID token is not yet valid. Current epoch = 1639932228.  The id_token was: {
  "aud": "04b07795-8ddb-461a-bbee-02f9e1bf7b46",
  "iss": "https://login.microsoftonline.com/7f3a6ceb-c511-477b-a21a-ea83ceae53d8/v2.0",
  "iat": 1639939130,
  "nbf": 1639939130,
  "exp": 1639943030,
  "aio": "AVQAq/8TAAAAYsnILJ3dlA0OeASi8Ho/o6KXiGr6ILKPMeHC5ito4c+1xDVXW2ACDq+M0glih2b12rv7s87mQ1aZ8EMe/6LSlQBZE/Nav9AndKAAkSptPD8=",
  "name": "\u0627\u062d\u0645\u062f \u0639\u0628\u062f \u0627\u0644\u0648\u0647\u0627\u0628 \u0627\u0644\u0645\u0644\u064a\u062c\u0649 \u0627\u0644\u0633\u064a\u062f \u062e\u0644\u064a\u0644",
  "nonce": "3c1378078f09b331d6f2303751c4c69cce309452cda35d220f1ba86fb6c605f0",
  "oid": "e700cf3f-f639-4ae5-b545-b344b47bb768",
  "preferred_username": "[email protected]",
  "puid": "1003BFFD9F046A9C",
  "rh": "0.ATkA62w6fxHFe0eiGuqDzq5T2JV3sATbjRpGu-4C-eG_e0Y5AJI.",
  "sub": "lpL4lCbd45D_IEG8r_LFMNLzAu0cudfQ3Ew9Fwirt3I",
  "tid": "7f3a6ceb-c511-477b-a21a-ea83ceae53d8",
  "uti": "FArHWAuoHUWFtu_CVVonAA",
  "ver": "2.0"
}
Traceback (most recent call last):
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\knack/cli.py", line 231, in invoke
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 658, in execute
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 721, in _run_jobs_serially
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 692, in _run_job
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 328, in __call__
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/command_operation.py", line 121, in handler
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/command_modules/profile/custom.py", line 149, in login
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/_profile.py", line 155, in login
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/auth/identity.py", line 147, in login_with_auth_code
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\msal/application.py", line 1546, in acquire_token_interactive
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\msal/oauth2cli/oidc.py", line 280, in obtain_token_by_browser
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\msal/oauth2cli/oauth2.py", line 640, in obtain_token_by_browser
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\msal/oauth2cli/oauth2.py", line 678, in _obtain_token_by_browser
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\msal/application.py", line 135, in obtain_token_by_auth_code_flow
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\msal/oauth2cli/oidc.py", line 204, in obtain_token_by_auth_code_flow
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\msal/oauth2cli/oauth2.py", line 548, in obtain_token_by_auth_code_flow
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\msal/oauth2cli/oauth2.py", line 732, in _obtain_token_by_authorization_code
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\msal/oauth2cli/oidc.py", line 115, in _obtain_token
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\msal/oauth2cli/oauth2.py", line 789, in _obtain_token
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\msal/application.py", line 581, in <lambda>
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\msal/token_cache.py", line 307, in add
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\msal/token_cache.py", line 113, in add
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\msal/token_cache.py", line 152, in __add
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\msal/oauth2cli/oidc.py", line 76, in decode_id_token
RuntimeError: 0. The ID token is not yet valid. Current epoch = 1639932228.  The id_token was: {
  "aud": "04b07795-8ddb-461a-bbee-02f9e1bf7b46",
  "iss": "https://login.microsoftonline.com/7f3a6ceb-c511-477b-a21a-ea83ceae53d8/v2.0",
  "iat": 1639939130,
  "nbf": 1639939130,
  "exp": 1639943030,
  "aio": "AVQAq/8TAAAAYsnILJ3dlA0OeASi8Ho/o6KXiGr6ILKPMeHC5ito4c+1xDVXW2ACDq+M0glih2b12rv7s87mQ1aZ8EMe/6LSlQBZE/Nav9AndKAAkSptPD8=",
  "name": "\u0627\u062d\u0645\u062f \u0639\u0628\u062f \u0627\u0644\u0648\u0647\u0627\u0628 \u0627\u0644\u0645\u0644\u064a\u062c\u0649 \u0627\u0644\u0633\u064a\u062f \u062e\u0644\u064a\u0644",
  "nonce": "3c1378078f09b331d6f2303751c4c69cce309452cda35d220f1ba86fb6c605f0",
  "oid": "e700cf3f-f639-4ae5-b545-b344b47bb768",
  "preferred_username": "[email protected]",
  "puid": "1003BFFD9F046A9C",
  "rh": "0.ATkA62w6fxHFe0eiGuqDzq5T2JV3sATbjRpGu-4C-eG_e0Y5AJI.",
  "sub": "lpL4lCbd45D_IEG8r_LFMNLzAu0cudfQ3Ew9Fwirt3I",
  "tid": "7f3a6ceb-c511-477b-a21a-ea83ceae53d8",
  "uti": "FArHWAuoHUWFtu_CVVonAA",
  "ver": "2.0"
}

To Reproduce:

Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

  • Put any pre-requisite steps here...
  • az login

Expected Behavior

Environment Summary

Windows-10-10.0.19041-SP0
Python 3.8.9
Installer: MSI

azure-cli 2.31.0

Additional Context

@ghost ghost added needs-triage This is a new issue that needs to be triaged to the appropriate team. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that customer-reported Issues that are reported by GitHub users external to the Azure organization. labels Dec 19, 2021
@yonzhan yonzhan added the Account az login/account label Dec 20, 2021
@ghost ghost removed the needs-triage This is a new issue that needs to be triaged to the appropriate team. label Dec 20, 2021
@yonzhan yonzhan removed the question The issue doesn't require a change to the product in order to be resolved. Most issues start as that label Dec 20, 2021
@yonzhan yonzhan added this to the Backlog milestone Dec 20, 2021
@yonzhan
Copy link
Collaborator

yonzhan commented Dec 20, 2021

@jiasli for awareness

@jiasli jiasli changed the title azure login issue azure login issue: RuntimeError: 0. The ID token is not yet valid. Current epoch = 1639932228. Dec 21, 2021
@jiasli
Copy link
Member

jiasli commented Dec 21, 2021

Please see #20388 (comment)

@jiasli jiasli closed this as completed Dec 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Account az login/account customer-reported Issues that are reported by GitHub users external to the Azure organization.
Projects
None yet
Development

No branches or pull requests

3 participants