Skip to content

Fix/first broker login flow#1500

Open
mbiti2 wants to merge 6 commits intoadorsys:mainfrom
mbiti2:fix/first-broker-login-flow
Open

Fix/first broker login flow#1500
mbiti2 wants to merge 6 commits intoadorsys:mainfrom
mbiti2:fix/first-broker-login-flow

Conversation

@mbiti2
Copy link
Copy Markdown
Collaborator

@mbiti2 mbiti2 commented Apr 10, 2026

What this PR does / why we need it:
Fixes the HTTP 500 Internal Server Error (NullPointerException) that occurs when importing a realm configuration that defines a custom firstBrokerLoginFlow and its corresponding authentication flow in the same import. The issue was that firstBrokerLoginFlow was being sent to Keycloak before the referenced authentication flow was created.
The fix adds firstBrokerLoginFlow to the list of ignored properties during initial realm import, then explicitly sets it after authentication flows are created (similar to how browserFlow, registrationFlow, etc. are handled).

Which issue this PR fixes: fixes #1481

How this PR was tested:

Screenshots / logs (if relevant):

Special notes for your reviewer:

PR Readiness Checklist:

Complete these before marking the PR as ready to review:

  • tests pass locally (mvn test or relevant subset)
  • added/updated tests for the changes (if applicable)
  • documentation has been updated (if applicable)
  • the CHANGELOG.md release notes have been updated to reflect any significant (and particularly user-facing) changes introduced by this PR

@mbiti2 mbiti2 force-pushed the fix/first-broker-login-flow branch from e754680 to 06c878e Compare April 14, 2026 07:46
@sonarqubecloud
Copy link
Copy Markdown

Copy link
Copy Markdown
Collaborator

@Motouom Motouom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @mbiti2, don't you think it is import5 to put a use case documentation?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Creation of a custom first broker login flow and binding it fails

2 participants