How do I set the login-token cookie expiration for AEM? This token affects the timeout for the session for default AEM authentication (token authentication) and SAML-based authentication.
Environment
AEM 6.*
For more documentation on the token configuration, see the api docs.
Note: The default token expiration timefor AEM is 43200000 ms (12 hours).
3. Once you edit the TokenConfiguration from the OSGI console, the file /apps/system/config/org.apache.jackrabbit.oak.security.authentication.token.TokenConfigurationImpl.config is created in the JCR repository.
4. Go to http://aem-host:port/crx/de/index.jsp
5. Browse to and open this file /apps/system/config/org.apache.jackrabbit.oak.security.authentication.token.TokenConfigurationImpl.config
6. If the field passwordHashAlgorithm exists in the file, then remove that line and save. For example, now your file might look like this:
passwordHashIterations=I"1000"
tokenExpiration="3600000"
tokenLength="8"
passwordSaltSize=I"8"