Thanks to visit codestin.com
Credit goes to Github.com

Skip to content

expose realm and session to getConfigProperties() in UiPageProvider #46452

@kritzl

Description

@kritzl

Description

It would be very nice to have the current KeycloakSession and RealmModel availabe in the getConfigProperties() method in a UiPageProvider.
This would enable you to render the page differently depending on the current context (e.g. the selected realm).

Value Proposition

It would be possible to generate Select fields (ProviderConfigProperty.LIST_TYPE) with options fetched from e.g. the UPConfig.

Goals

Add a signature for getConfigProperties() like this:

public List<ProviderConfigProperty> getConfigProperties(KeycloakSession session){
}

The KeycloakSession should be a session, like the one the create(KeycloakSession session) method of the RealmResourceProviderFactory gets.

Non-Goals

Discussion

#24805 (reply in thread)

Notes

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions