-
Notifications
You must be signed in to change notification settings - Fork 3k
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
az login fail: The ID token is not yet valid. #20934
Comments
@jiasli for awareness |
Could be related to #20388 However,
Which error is the one you see? |
I was using my Windows 10 home pc and powershell for couple of days to connect. This happened only once, I restarted the PC and then tried to connect back to Azure but could not. I was doing that many times in the same way without issues. I opened the powershell, typed "az login" this triggered the browser to load ms page to login in, I logged in web page showed the sucess and then after few seconds powershell reported the error instead standard success message. |
Please see #20388 and check if your computer's time is synchronized.
|
I did check the time as a first thing but it was correct down to second. Actually I submitted the issue after few minutes when all possible solutions did not work. Isse was reported at: I did not use "az login --identify" just typed "az login" |
You are right my mistake :) but my point is that I really checked the time as first possible problem and it was correct. I wonder if there is anything that can be added in the error message that will help debug i tin the future. If server side rejects this because of the wrong time then report both serer time and token time stamp so that both are reportable and visible that may help in the future. |
I think the error message was already pretty clear - it contains the time on the machine (
The ID token is not rejected by the service side, but by local client MSAL. MSAL has refined the error message in AzureAD/microsoft-authentication-library-for-python#449. It will suggest the user to check the computer's time. |
Clear, I thin I will close the issue then. Cannot replicate it, happened once, most likely it was some time sync issue, after few hours it was working ok. Unless you tell me differently I will close tomorrow. |
@mkkee, thanks for the confirmation. If this issue happens again, please let us know. |
Just happened to me, |
This is autogenerated. Please review and update as needed.
Describe the bug
getting this error when trying to log in form Powershell:
"0. The ID token is not yet valid. Current epoch = 1641641034. The id_token was: {"
this was working fine yesterday and started to fail today after restart.
Command Name
az login
Errors:
To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.
az login --identity
Expected Behavior
Environment Summary
Additional Context
The text was updated successfully, but these errors were encountered: