keycloak/keycloak
View on GitHubAllow using username form authenticator together with the organization identity-first login flow
Open
#42192 opened on Aug 27, 2025
area/organizationshelp wantedkind/bugpriority/normalstatus/auto-bumpteam/core-iam
Description
Before reporting an issue
- I have read and understood the above terms for submitting issues, and I understand that my issue may be closed without action if I do not follow them.
Area
organizations
Describe the bug
Given:
- The organizations are enabled and there is at least one active organization
- Use a custom browser flow in which
Username formandPassword formare used instead ofUsername Password form - A user have a linked identity provider
When that user logs in, there is an additional blank form page between the username form and the password form.
Version
26.3.3
Regression
- The issue is a regression
Expected behavior
No blank page.
The user should immediately see the next step which is the Password form
Actual behavior
There is a blank form page with only the Sign-in button between the Username form and the Password form
How to Reproduce?
- Create a realm
- Enable organizations
- Create an organization
- Configure a custom
browserauth flow: Replace (Username Password form) by (Username formANDPassword form, set toREQUIREDof course) - Add an IDP (Tested with Google and Github)
- Connect a user through the IDP to link the account
- [Optional] Set a password
- Logout
- Use the user email or username to login using the username form
Anything else?
This does not occur when there are 0 organizations, nor when organizations are disabled, or when the Organization Identity-First Login authentication step is disabled.
However it is still reproducible if there are organizations and they're disabled.
Video demo
https://github.com/user-attachments/assets/66385229-d9a0-44a9-b248-0229254adbda