WSO2 Api Manager - How to change the expiration time of JWT?

后端 未结 1 393
别那么骄傲
别那么骄傲 2021-01-21 23:23

I want to change the expiration time of JWT token created in WSO2 Api Manager. It seems that the default time is 15 minutes.

{\"typ\":\"JWT\",\"alg\":\"none\"}.
         


        
相关标签:
1条回答
  • 2021-01-21 23:44

    It should be applied as follows, under APIKeyValidator section,

       <APIKeyValidator>
               <SecurityContextTTL>5</SecurityContextTTL>
       </APIKeyValidator>
    

    But as per the Jira you mentioned, it seems there is a bug in this version.

    WSO2 has fixed this in next version(2.0.0), using a new property, see [1].

    [1] https://wso2.org/jira/browse/APIMANAGER-4575

    0 讨论(0)
提交回复
热议问题