Normally, your clients or testing tools should integrate with OAuth authorization server to get tokens during runtime; however, for manual testing, it is very inconvenient to get an access token every 10 minutes. To make the testers’ jobs easier, you can generate a long-lived token for dev testing from a tool in the light-4j framework.
For your official deployment, please create self-signed key pairs of your own or buy a certificate from one of the Commercial CAs.
The tool is a test case that you can add an entry to generate a token based on your needs. We are considering building a site for developers to get a long-lived token in the future. If a site is provided, it should be part of the portal at https://lightapi.net/form/longLivedTokenForm.
Please be aware that the portal can only generate a token based on the default key pair mentioned above. If you deploy your light-oauth2 instance with your self-signed or CA-issued certificates, then the site won’t work.
It is locate at light-4j/security/src/test/java/com/networknt/security/JwtHelperTest.java
Here is the url on github.com networknt organization.
Here are two examples that generate authorization code grant type tokens. You can add your own test cases with different parameters.