This documentation is for WSO2 API Manager 2.0.0 View documentation for the latest release.
Page Comparison - Passing Enduser Attributes to the Backend Using JWT (v.17 vs v.18) - API Manager 2.0.0 - WSO2 Documentation

Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Fix


Setting the JWT expiry time has no effect if the caching is enabled in the Gateway Manager or Key Manager. The WSO2 API-M Gateway caching is enabled by default. However, if required, you can enable or disable the caching for the Gateway Manager or the Key Manager using the <EnableGatewayTokenCache> or <EnableKeyManagerTokenCache> elements respectively in the <APIM_HOME>/repository/conf/api-manager.xml file. If caching is enabled for the Gateway Manager or the Key Manager, the JWT expiry time is will be the same as the cache expiry time by default. Howeversame as that defined in <TokenCacheExpiry> property in <API-M_HOME>/repository/conf/api-manager.xml file. However, if caching is not enabled for the Gateway and Key Manager nodes, you can set the JWT expiry time by adding the expiry time in seconds in the <JWTExpiryTime> element, which is in the <APIM_HOME>/repository/conf/api-manager.xml file.