the token expires when I generate another token wso2 apim 4.0.0

53 Views Asked by At

I have downloaded APIM 4.0.0.0 and update wso2am-4.0.0.84

When I generate my first token and consume an API it generates 200 ok, but when I generate another token, it immediately expires the first token generated, i.e. when I generate a new token the previous one expires.

only happens in update 4.0.xxx but in other versions even in 4.2.0 the tokens are still alive until they expire.

2

There are 2 best solutions below

0
Andres Tinoco On BEST ANSWER

The solution is to add this line in deployment.toml

[oauth.access_token]
invoke_token_revocation_event_on_renewal = false
0
Andres Tinoco On

It has been solved in this way: 1- Update to wso2am-4.0.0.273. 2- Add the following line in the deployment.toml:

[oauth.jwt.renew_token_without_revoking_existing]
enable = true