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
I have a realm that is associated with an external IdP. I have user registration disabled and I have the IdP login visible on the login page. This all works at the moment. The issue i'm trying to solve is that any member who has an account with the IdP can login and I would like to change that. I want to only allow a subset of the users with an account with the IdP to be able to login. I started looking into the Organization feature that was introduced in version 25 of Keycloak and was hoping that the following would work:
Created an organization in the realm, setup a domain, and tied it to the IdP
IdP under org is configured to be hidden on login page and redirect when email domain matches is OFF
That config almost works, where if a user with an IdP account but without an existing account in Keycloak, will not be able to login. However, that same user, when I pre-create a Keycloak account for them in that org, when they try to login, would be asked for a password as opposed to being sent to the IdP for authentication.
I tried enabling "redirect when email domain matches" however that allows everyone with an IdP account to login which is the issue i'm trying to solve.
Any recommendations and/or tweaks to the authentication flow that would allow me to do what i need?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
I have a realm that is associated with an external IdP. I have user registration disabled and I have the IdP login visible on the login page. This all works at the moment. The issue i'm trying to solve is that any member who has an account with the IdP can login and I would like to change that. I want to only allow a subset of the users with an account with the IdP to be able to login. I started looking into the Organization feature that was introduced in version 25 of Keycloak and was hoping that the following would work:
Created an organization in the realm, setup a domain, and tied it to the IdP
IdP under org is configured to be hidden on login page and redirect when email domain matches is OFF
That config almost works, where if a user with an IdP account but without an existing account in Keycloak, will not be able to login. However, that same user, when I pre-create a Keycloak account for them in that org, when they try to login, would be asked for a password as opposed to being sent to the IdP for authentication.
I tried enabling "redirect when email domain matches" however that allows everyone with an IdP account to login which is the issue i'm trying to solve.
Any recommendations and/or tweaks to the authentication flow that would allow me to do what i need?
All reactions