-
Notifications
You must be signed in to change notification settings - Fork 7.4k
Organization member onboarding using the organization identity provider #28761
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @pedroigor for the PR, I went over it briefly and overall it seems good to me.
As I'm not very familiar with authenticators part, I'd welcome if someone more experienced in the area would take a look to speed up the review and merging.
I've added few comments/questions, please take a look. IMO we can create follow-up issues for those to not block the PR from merging.
model/jpa/src/main/java/org/keycloak/organization/jpa/JpaOrganizationProvider.java
Outdated
Show resolved
Hide resolved
model/jpa/src/main/java/org/keycloak/organization/jpa/JpaOrganizationProviderFactory.java
Outdated
Show resolved
Hide resolved
...main/java/org/keycloak/organization/admin/resource/OrganizationIdentityProviderResource.java
Show resolved
Hide resolved
model/jpa/src/main/java/org/keycloak/organization/jpa/JpaOrganizationProviderFactory.java
Outdated
Show resolved
Hide resolved
model/jpa/src/main/java/org/keycloak/organization/jpa/JpaOrganizationProviderFactory.java
Outdated
Show resolved
Hide resolved
model/jpa/src/main/java/org/keycloak/organization/jpa/JpaOrganizationProviderFactory.java
Outdated
Show resolved
Hide resolved
...rc/test/java/org/keycloak/testsuite/organization/admin/OrganizationIdentityProviderTest.java
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@pedroigor Nice! Added few minor comments inline. Reviewed especially the parts related to authentication (as that is what @vramik mentioned that he did not reviewed too deeply).
...k/organization/authentication/authenticators/broker/IdpOrganizaitonAuthenticatorFactory.java
Outdated
Show resolved
Hide resolved
...oak/organization/authentication/authenticators/browser/OrganizationAuthenticatorFactory.java
Show resolved
Hide resolved
...k/organization/authentication/authenticators/broker/IdpOrganizaitonAuthenticatorFactory.java
Outdated
Show resolved
Hide resolved
...k/organization/authentication/authenticators/broker/IdpOrganizaitonAuthenticatorFactory.java
Outdated
Show resolved
Hide resolved
Closes keycloak#28273 Signed-off-by: Pedro Igor <pigor.craveiro@gmail.com>
Closes #28273
LoginFormsProvider
to allow customizing the attributes available to templates using a general purpose "mapper" rather than a specific method to enable/disable a capability in login pagesOrganizationModel.getIdentityProvider
method was added as it removes boilerplate code to resolve the identity provider for a given organizationOrganizationProvider.isEnabled
was added to make it easier to check whether a realm supports organizations and if it is enabled to a realm. By doing that, and relying on realm attributes, we can easily check whether a realm should consider processing authorization requests based on its organizations.