Closed LindaLawton closed 2 years ago
Its working again. Now i am just curious to the cause of the issue.
is this something i need to handle in my code just keep trying until you return a token?
This is probably due to clock skew. Try increasing the validity of your jws
I believe we discussed this in a previous post I am using the following as per that post.
Expires = DateTime.Now.AddSeconds(500),
OK, you probably also have to account for clock skew in the other direction, by setting nbf
and iat
a few seconds back in time
This seams reasonably stable at this point
IssuedAt = DateTime.UtcNow.AddMinutes(-5),
NotBefore = DateTime.UtcNow.AddMinutes(-5),
Expires = DateTime.UtcNow.AddMinutes(5),
Do you have any issues with those times? Yes i switched it to UTC. However just setting it to UTC didn't fix it so I went back in time by a few minutes I could boost it to ten minutes. Yes i'm asking your opinion 😉
yes this seems fine
Unfortunately its not now i am getting forbidden. I was making access tokens with this all morning now its failing again.
I was getting access tokens twenty minutes ago.
whats up?