I’m working with OIDC on my test endpoint. This was successful during initial testing, however, I’m now getting:
{
"error": "Key has expired, please renew"
}
However, I get this now no matter what I do. I’ve deleted the API and associated policy altogether, and when I recreate it - I still get this error. This all happens with one account I’ve been using to authenticate (other accounts I use give me tokens that work fine).
Well, that key now says it’s not authorized. I just generated a new one (in your PM) which also says “Key has expired, please renew”.
I realize I didn’t specifically answer your question: Yes, even immediately after generating a token (with a 1 hour exp time from the time it’s generated), it says it’s expired.
Yes, I do think this is the case (the underlying key is “stuck”). If I use a different user to generate a JWT it works fine. I still can’t generate a key for my test user (which is actually me!). How do I get it unstuck?
Thanks Martin - sorry, I was pulled away from this with an emergency for a few days. Ok - so can you clarify the URL I need to use for Tyk cloud? (that’s where this is happening…)
The cloud URL is restricted to managing portal developer keys, it’s highly restricted so it won;t work via the dashboard. Are you using pure cloud or Hybrid?
Ok - I’ve tried deleting every variation of this hashed key I can think of on my local tyk (hybrid) instances. It always returns:
{"key":"xxxxxx","status":"ok","action":"deleted"}
But no matter what, I still keep getting the error:
"error": "Key has expired, please renew"
Out of desperation, I shut down all of our tyk servers, waited for them to all be completely down. I’m still getting the same error. Any other thoughts?
[Edit: I’m still a little unclear about why these local tyk instances are involved when I’m calling the tyk cloud endpoint though…]
I don’t know - we’re not intending to use it there, we need it to work on the cloud instance. The internal instance isn’t exposed to where we’re testing from either in this case.
I guess, ultimately I’m looking for - how do we fix this?
Thanks - the key was provided in the ticket. I have it set to not expire in the policy, will that cause an issue? Do you mean - I should set an expiration under the “Trial period (Set key expiry on create)” section?
If I do that, and it expires - won’t we be back in the same boat again, where you have to delete the key for me before I can use a new one?