Can we increase the expiration date of the JWT token

divya_das
divya_das New Altair Community Member
edited November 5 in Community Q&A
We have the token service API : $RMServerHost/api/rest/tokenservice
As per the documentation "
The expirationDate indicates how long the JWT is valid, the default is 5 minutes."
Can we increase the expiration date for the generated token? 
Tagged:

Answers

  • Marco_Boeck
    Marco_Boeck New Altair Community Member
    Hi,

    You can add a system setting for the expiration amount in seconds. Defaults to 300 (aka 5 minutes).
    Setting is called "com.rapidanalytics.jwt.expiration".
    See here for how to change system settings: https://docs.rapidminer.com/latest/server/configure/settings/

    Regards,
    Marco
  • divya_das
    divya_das New Altair Community Member
    Hi,

    I tried the mentioned setting, added it to RapidMiner Server-> Administration->System Settings. I had set a value of 600 and then later 9000 for the setting "com.rapidanalytics.jwt.expiration". I restarted the server as well. But, when I hit the token service, the generated token still has an expiration duration of 5 minutes. 

    Also, I checked in the documentation, Configure RapidMiner Server ->  Settings and Services -> Table of Settings. This does not have the mentioned setting for jwt.expiration.

    Regards,
    Divya
  • Marco_Boeck
    Marco_Boeck New Altair Community Member
    Hi,

    I confirmed with the team responsible for it that this is indeed how it works. That it's not in the table is just an oversight.
    I'm not sure why it does not seem to work for you. Please open a support case if you cannot get it to work.

    Regards,
    Marco