Repository navigation
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds provider-supplied password-policy help text to the Admin Console while preserving translation precedence.
Changes:
- Extends server and client representations with optional
helpText. - Exposes
ConfiguredProvider#getHelpText()and uses it as the UI fallback. - Adds a custom provider and integration test covering the server response.
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
core/.../PasswordPolicyTypeRepresentation.java |
Adds the help-text property. |
services/.../ServerInfoAdminResource.java |
Populates provider help text. |
js/libs/.../passwordPolicyTypeRepresentation.ts |
Updates the TypeScript definition. |
js/apps/.../PolicyRow.tsx |
Adds tooltip fallback behavior. |
tests/custom-providers/.../TestConfiguredPasswordPolicyProviderFactory.java |
Defines the test provider. |
tests/custom-providers/.../PasswordPolicyProviderFactory |
Registers the test provider. |
tests/base/.../ServerInfoPasswordPolicyTest.java |
Verifies custom and built-in policy responses. |
This was referenced Jul 11, 2026
PoC: render one input per declared configuration property for password policies
enoquefcd/keycloak#5
Open
enoquefcd
force-pushed
the
password-policy-helptext
branch
from
July 23, 2026 10:36
2f6240f to
0b00d84
Compare
enoquefcd
force-pushed
the
password-policy-helptext
branch
from
July 23, 2026 10:59
7268ab4 to
6a2f75c
Compare
This was referenced Jul 23, 2026
Unreported flaky test detectedIf the flaky tests below are affected by the changes, please review and update the changes accordingly. Otherwise, a maintainer should report the flaky tests prior to merging the PR. org.keycloak.testsuite.forms.MultipleTabsLoginTest#multipleTabsParallelLoginTestWithAuthSessionExpiredAndRequiredActionKeycloak CI - Forms IT (chrome) org.keycloak.testsuite.forms.BrowserFlowTest#testUserWithOneAdditionalFactorOtpSuccess |
enoquefcd
force-pushed
the
password-policy-helptext
branch
from
August 20, 2026 16:04
6a2f75c to
215820d
Compare
enoquefcd
force-pushed
the
password-policy-helptext
branch
from
August 20, 2026 16:13
215820d to
1e088fe
Compare
ahus1
force-pushed
the
password-policy-helptext
branch
from
September 23, 2026 21:18
1e088fe to
b729201
Compare
The server info endpoint now includes the help text of password policy factories that implement ConfiguredProvider, and the Admin Console falls back to it when no passwordPoliciesHelp.<id> translation is defined. Theme and realm translations keep precedence, built-in policies are unaffected, and the new representation field is additive. Closes keycloak#50805 Signed-off-by: Enoque Duarte <enoquefcd@gmail.com>
enoquefcd
force-pushed
the
password-policy-helptext
branch
from
September 25, 2026 17:54
b729201 to
caad9b7
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #50805
Custom password policies show the raw message key
passwordPoliciesHelp.<id>as their tooltip in Authentication → Policies, because the tooltip is resolved exclusively from translations and a policy provider has no way to supply the text itself (see the linked issue).Changes
PasswordPolicyTypeRepresentation: new optionalhelpTextfield (additive, no behavior change for existing consumers).ServerInfoAdminResource.setPasswordPolicies: populateshelpTextfromConfiguredProvider#getHelpText()when the factory implements it — the same opt-in hooksetProvidersalready uses to buildcomponentTypes. No SPI change.keycloak-admin-client:helpText?: string;added to the TS definition.PolicyRow: the tooltip falls back to the server-provided help text when nopasswordPoliciesHelp.<id>translation is defined. Precedence is otherwise unchanged: theme/realm translation, then provider help text, then the raw key (today's behavior).Built-in policies do not implement
ConfiguredProvider, so their representations and rendering are unchanged.Tests
ServerInfoPasswordPolicyTest(new test framework,CustomProvidersServerConfig) asserting that a custom policy factory implementingConfiguredProviderexposes its help text in the server info password policies list, and that built-in policies keep a nullhelpText.TestConfiguredPasswordPolicyProviderFactoryintests/custom-providers.Related
theme-resources/messagesmechanism; if this enhancement lands, that section should documentConfiguredProvider#getHelpText()as the direct option. I will update whichever of the two lands second.AI disclosure
Generative AI (Claude) was used to assist with the implementation and this description, per the contributing guidelines. I have reviewed and understand every change and will personally address review feedback.