Skip to content

Add briefRepresentation Parameter to RealmsResource.findAll #202

@bonnQvantum

Description

@bonnQvantum

Description

Currently, the RealmsResource only has one Method to find all Realms in a Keycloak Instance, which always fetches the complete RealmRepresentation for all Realms. The Keycloak Admin API seems to have a briefRepresentation Query Parameter to request smaller realm representations.

Would it be possible to add this query parameter to the admin client or provide a different way to list all realms in a Keycloak instance?

Discussion

No response

Motivation

When trying to iterate over all realms using the admin client, it is currently necessary to use the RealmsResource.findAll(). In our case this leads to malformed JSON because the Realms request runs into the transaction timeout as mentioned in keycloak/keycloak#26884.

Details

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions