Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Unable to redirect to Organization IDP when login #394

Open
1 task done
HanifAbRazak opened this issue Jul 11, 2024 · 1 comment
Open
1 task done

[BUG] Unable to redirect to Organization IDP when login #394

HanifAbRazak opened this issue Jul 11, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@HanifAbRazak
Copy link

HanifAbRazak commented Jul 11, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

  1. I created a flow where only have cookie and Home IDP Discovery - Organization via Email.
  2. Added new IDP with alias OIDC
  3. I created user named "test "and email "[email protected]"
  4. I created organization name "Test" and assign domain "test.io"
  5. Add "test" as member of "Test" organization
  6. Linked "OICD" IDP to "Test" organization
  7. Try to login with link "/realms/test/account/"
  8. enter email "[email protected]" and click "Sign in"

Result : "Invalid username or password"

Please advice. Did I missed anything?

Expected Behavior

upon clicking sign in, Keycloak will redirect to the IDP that has been set to the organization

Steps To Reproduce

Screenshot 2024-07-11 161209
Screenshot 2024-07-11 161222
Screenshot 2024-07-11 162204
Screenshot 2024-07-11 161447

Screenshot 2024-07-11 161431
Screenshot 2024-07-11 161130

Version

- Keycloak:25.0.0
- This extension:

Anything else?

No response

@HanifAbRazak HanifAbRazak added the bug Something isn't working label Jul 11, 2024
@sventorben sventorben self-assigned this Jul 16, 2024
@sventorben
Copy link
Owner

Hey @HanifAbRazak,

that's an interesting find.
The extension validates whether a domain is marked as "verified" and only redirects users to an associated IdP if that is the case.
However, while the KC internal model has a property to check verification status, I cannot find a way to set that status via the Keycloak UI. It can be set via REST/HTTP request though.

As this feature is early preview, I would like to understand why you are using this extension instead of the built-in KC functionality for your usecase. Could you elaborate that a bit, please?

Best,
Sven-Torben

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants