I have unit tests written in python that ensure token gets decoded properly.
the issue i run into is the tokens from okta dev expire
looking for a way to have a test oriented non expiring token, or valid testing strategy that would involve tokens i.e. how to supress expired exception and just show what’s in the token
If you are using a custom authorization server (eg. issuer is set to https://org.okta.com/oauth2/default), then you can change the lifetime of access tokens to maximum 24h and refresh tokens to unlimited, process described here (How do I set up an authorization server? >> Create Access Policies). ID tokens can not be customized and have a static lifetime of 60 minutes.
We do not offer the possibility to generate non-expiring JWT tokens as the RFC requires a mandatory “exp” timestamp claim set.