mirror of
https://github.com/keycloak/keycloak.git
synced 2026-01-10 15:32:05 -03:30
Show required fields when configuring protocol mappers
Closes #40619 Signed-off-by: Alexander Schwartz <aschwart@redhat.com>
This commit is contained in:
parent
c1afa376b2
commit
7629b7dc53
@ -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.
|
||||
|
||||
@ -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}
|
||||
/>
|
||||
);
|
||||
|
||||
@ -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);
|
||||
}
|
||||
|
||||
|
||||
@ -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);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user