This document outlines how to change the Keycloak default token lifetime or the token lifetime for a specific client.
Note: The default value for these settings is 365 days.
Log in to Keycloak with the default admin credentials.
Point a browser at https://auth.cmn.SYSTEM_DOMAIN_NAME/keycloak/admin, replacing SYSTEM_DOMAIN_NAME with the actual NCN’s DNS name. Use of the auth.cmn. sub-domain is required for administrative access to Keycloak.
The following is an example URL for a system: https://auth.cmn.system1.us.cray.com/keycloak/admin
Use the following admin login credentials:
adminkubectl get secret -n services keycloak-master-admin-auth \
--template={{.data.password}} | base64 --decode
Realm Settings under Configure on the left of the admin page.Tokens tab.SSO Session IdleSSO Session MaxAccess Token LifespanAccess Token Lifespan for Implicit FlowSave at the bottom of the page.
Clients under Configure on the left of the admin page.Advanced Settings.Access Token Lifespan to the appropriate lifetime value.Save at the bottom of the page.
