8000 Keycloak Version 25.0.4 Importing Clients via Json sets the Access Token Lifespan to 0 if the Realm setting was changed from the default. · Issue #36092 · keycloak/keycloak · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Keycloak Version 25.0.4 Importing Clients via Json sets the Access Token Lifespan to 0 if the Realm setting was changed from the default. #36092
Closed as not planned
@shinyobject88

Description

@shinyobject88

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.
image

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?

  1. Import realm via Json and set accessTokenLifespan to 43200 representing 12 hours.
  2. Import clients via the rest api. These clients should not set the accessTokenLifespan in the attributes.
  3. Once installed, open Keycloak and login.
  4. Navigate to the realm that was imported and the client that was imported. Select the Advanced tab.
  5. Scroll to the Advanced Settings to see the Access Token Lifespan.

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0