You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/main/java/io/github/kilmajster/keycloak/UsernamePasswordAttributeFormConfiguration.java
+8-5Lines changed: 8 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -21,37 +21,40 @@ public interface UsernamePasswordAttributeFormConfiguration {
21
21
.name(LOGIN_FORM_USER_ATTRIBUTE)
22
22
.type(ProviderConfigProperty.STRING_TYPE)
23
23
.label("User attribute")
24
-
.helpText("TODO")
24
+
.helpText("Attribute used to validate login form.")
25
25
.add()
26
26
27
27
.property()
28
28
.name(LOGIN_FORM_GENERATE_LABEL)
29
29
.type(ProviderConfigProperty.BOOLEAN_TYPE)
30
30
.label("Generate label")
31
31
.defaultValue("true") // only string value is accepted
32
-
.helpText("TODO")
32
+
.helpText("If enabled, label for login form will be generated based on attribute name, so attribute with name:" +
33
+
" \"foot_size\" will be labeled as \"Foot size\", \"REALLY_custom.user-Attribute\" will be translated " +
34
+
"to \"Really custom user attribute\", etc. By default, set to true. If User attribute form label " +
35
+
"is configured, label is taken form configuration and generation is skipped.")
33
36
.add()
34
37
35
38
.property()
36
39
.name(CLEAR_USER_ON_ATTRIBUTE_VALIDATION_FAIL)
37
40
.type(ProviderConfigProperty.BOOLEAN_TYPE)
38
41
.label("Clear user on validation fail")
39
42
.defaultValue("true") // only string value is accepted
40
-
.helpText("TODO")
43
+
.helpText("If enabled, user is not stored in session context in case username and password were valid but user attribute was not.")
41
44
.add()
42
45
43
46
.property()
44
47
.name(LOGIN_FORM_ATTRIBUTE_LABEL)
45
48
.type(ProviderConfigProperty.STRING_TYPE)
46
49
.label("User attribute form label")
47
-
.helpText("TODO")
50
+
.helpText("Message which will be displayed as user attribute input label. If value is a valid message key, then proper translation will be used.")
48
51
.add()
49
52
50
53
.property()
51
54
.name(LOGIN_FORM_ERROR_MESSAGE)
52
55
.type(ProviderConfigProperty.STRING_TYPE)
53
56
.label("Validation error message")
54
-
.helpText("TODO")
57
+
.helpText("Message which will be displayed as user attribute validation error. If value is a valid message key, then proper translation will be used.")
0 commit comments