Description
Before reporting an issue
- I have read and understood the above terms for submitting issues, and I understand that my issue may be closed without action if I do not follow them.
Area
admin/cli
Describe the bug
During the implementation of Keycloak, we import our realm settings which sets the accessTokenLifespan to 43200 to represent 12 hours. Via the rest api after the install of this realm, we add our clients which do not touch this setting. It should default to Inherits from realm settings. However, the setting in the clients that are added to the realm are set to Expires in 0 Days causing applications utilizing these clients to fail. If I manually update it to Inherits from realm settings, it will respect the realm settings and set it to 12 hours. I added the image of what the client setting looks like after it was imported.
Version
26.0.7
Regression
- The issue is a regression
Expected behavior
Client should default to Inherits from realm settings and set Access Token Lifespan to 12 hours.
Actual behavior
Client does not respect setting and sets the Access Token Lifespan to Expires in 0 Days.
How to Reproduce?
- Import realm via Json and set accessTokenLifespan to 43200 representing 12 hours.
- Import clients via the rest api. These clients should not set the accessTokenLifespan in the attributes.
- Once installed, open Keycloak and login.
- Navigate to the realm that was imported and the client that was imported. Select the Advanced tab.
- Scroll to the Advanced Settings to see the Access Token Lifespan.
Anything else?
No response