keycloak/keycloak

setError() should have an option to use a theme property

Open

#23,552 创建于 2023年9月27日

在 GitHub 查看
 (12 评论) (0 反应) (0 负责人)Java (8,346 fork)batch import
area/login/uihelp wantedkind/featureteam/core-clients

仓库指标

Star
 (34,398 star)
PR 合并指标
 (平均合并 6天 19小时) (30 天内合并 384 个 PR)

描述

Description

Hi,

Since messages in a theme, defined on the theme.properties and message_locale, can be customized, it would be nice if the setError() method of a form (https://www.keycloak.org/docs-api/22.0.2/javadocs/org/keycloak/forms/login/LoginFormsProvider.html#setError(java.lang.String,java.lang.Object...)) could be configured to display a theme message. That way, errors could be displayed in different languages.

Discussion

Keycloak-dev

Motivation

This would make creating custom Authenticators and other SPI's easier, especially in instances that have a lot in many languages.

Details

No response

贡献者指南