Azure-Samples / ms-identity-python-webapp

A Python web application calling Microsoft graph that is secured using the Microsoft identity platform
MIT License
293 stars 140 forks source link

RuntimeError: 0. The ID token is not yet valid. #66

Closed taoisu closed 3 years ago

taoisu commented 3 years ago

Following the instructions in the README.md, when I login with my org account (xiaguo@microsoft.com), I got error "RuntimeError: 0. The ID token is not yet valid."

I tried to figure out what's going on, somehow the "nbf" returned is way later than now image

What can I do to solve this issue? Thanks for your answer!

rayluo commented 3 years ago

I tried it just now, with my org account (also in microsoft.com), and it worked for me. Can you reproduce this issue?

taoisu commented 3 years ago

Thanks @rayluo! It looks like the issue is with my system time, I'm using WSL and somehow it's time is not synced to the latest, after I forced time sync, everything is fine now.