简体   繁体   中英

Invalid JWT: Token must be a short-lived token and in a reasonable timeframe

i'm having issue with google service account, the same about this post Error:"invalid_grant", Description:"Invalid JWT: Token must be a short-lived token and in a reasonable timeframe", Uri:"" , and i'm using the same procedure.

I'have checked time synchronization but the problem persists.
I've noticed that after the service is created by

var service = new PlusService(new BaseClientService.Initializer()
        {
            HttpClientInitializer = credential,
            ApplicationName = "CRMpaolo",
        });

i can see that no token has been received/created, as the image below

screenshot

Is there any relation with the problem?

Make sure your time of assertion (iat) is the current time and date expressed as the number of seconds since 00:00:00 UTC, January 1, 1970. Make sure your expiration time for the assertion is set to 3600 seconds greater than your iat. Check out https://www.epochconverter.com/ to get current time in seconds.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM