Show required fields when configuring protocol mappers

Closes #40619

Signed-off-by: Alexander Schwartz <aschwart@redhat.com>
This commit is contained in:
Alexander Schwartz 2025-08-15 07:28:45 +02:00 committed by GitHub
parent c1afa376b2
commit 7629b7dc53
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 16 additions and 0 deletions

View File

@ -55,6 +55,14 @@ When using the `+/realms/{realm-name}/broker/{provider_alias}/token+` endpoint f
When using GitHub as an IDP, you can now enable JSON responses to leverage the token refresh for this endpoint.
== Required field in User Session note mapper
The name of the session note is now shown as a required field in the Admin UI.
== Required field in OIDC attribute mapper
The name of the token claim is now shown as a required field in the Admin UI.
=== Volatile user sessions affecting offline session memory requirements
Starting with this release, {project_name} will cache by default only 10000 entries for offline user and client sessions in memory when volatile user sessions are enabled. This will greatly reduce memory usage.

View File

@ -17,6 +17,12 @@ export const StringComponent = ({
label={t(label!)}
labelIcon={t(helpText!)}
data-testid={name}
rules={{
required: {
value: !!props.required,
message: t("required"),
},
}}
{...props}
/>
);

View File

@ -438,6 +438,7 @@ public class OIDCAttributeMapperHelper {
property.setLabel(TOKEN_CLAIM_NAME_LABEL);
property.setType(ProviderConfigProperty.STRING_TYPE);
property.setHelpText(TOKEN_CLAIM_NAME_TOOLTIP);
property.setRequired(true);
configProperties.add(property);
}

View File

@ -49,6 +49,7 @@ public class UserSessionNoteMapper extends AbstractOIDCProtocolMapper implements
property.setLabel(ProtocolMapperUtils.USER_SESSION_MODEL_NOTE_LABEL);
property.setHelpText(ProtocolMapperUtils.USER_SESSION_MODEL_NOTE_HELP_TEXT);
property.setType(ProviderConfigProperty.STRING_TYPE);
property.setRequired(true);
configProperties.add(property);
OIDCAttributeMapperHelper.addAttributeConfig(configProperties, UserSessionNoteMapper.class);
}