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
Add missing password policy entries and update docs for keycloak:
passwordHistory: checking it needs the user's stored password hashes, which only the server has. Keycloak reports a reused password after submit as a server error, and keycloakify already displays that
forceExpiredPasswordChange: this is an expiry period, not a rule about what the password contains. There's nothing to check
Summary by CodeRabbit
New Features
Added support for displaying Keycloak 26+ password policy information, including password history and forced password-change settings.
Bug Fixes
Prevented password history and forced password-change settings from being treated as client-side validation errors, since they cannot be verified without access to stored credentials.
Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review.
📝 Walkthrough
The PasswordPolicies type adds two optional numeric fields. Password-policy error types exclude those fields from client-side validation error names.
Changes: Password policy types
Layer / File(s)
Summary
Password policy types and error names src/login/KcContext/KcContext.ts, src/login/lib/getUserProfileApi/getUserProfileApi.ts, src/login/lib/useUserProfileForm.tsx
PasswordPolicies adds optional passwordHistory and forceExpiredPasswordChange fields. Password-policy error names exclude both fields. The source comment identifies Keycloak 26+ as the source of password policy values.
No actionable merge-blocking risk was identified in the password-policy type updates.
Pre-merge checks: 5
Check name
Status
Explanation
Description Check
Check skipped - CodeRabbit’s high-level summary is enabled.
Title check
The title clearly summarizes the main change: adding the missing password policy entries. It also covers the related documentation and type updates.
Docstring Coverage
No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 3…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage
Explanation
No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 3 files.
✨ Finishing Touches
🧪 Generate unit tests (beta)
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required C
8000
I, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
you're welcome, thanks for the project. Glad to contribute
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
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.
Add missing password policy entries and update docs for keycloak:
Summary by CodeRabbit
New Features
Bug Fixes