Why does IS4 JWT token expire sooner than expected? #1880
-
I am using identity server tokens in ocelot gateway. Everything works fine. However I have a month lifetime for my access tokens in my testing environment, but after generating a token usually in 2 days of using it I get 401 unauthorized. Here is an example of my token that is regarded as expired: You can see in https://jwt.io/ that it is perfectly valid. And here is a newly generated token that works perfectly: I just can't understand what is the problem. Any help would be highly appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Inside your Identity Server project, if you are using |
Beta Was this translation helpful? Give feedback.
Inside your Identity Server project, if you are using
.AddDeveloperSigningCredential()
,then try to use
.AddSigningCredential()
with your own certificate.