-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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
Do not manage brokers through the Organization API #29269
Conversation
1c7ca53
to
85d65e5
Compare
|
||
if (existing == null) { | ||
return; | ||
} |
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.
Why return here? If you are importing an IDP, don't you want to check if the representation matches an org (potentially) and one of its domain regardless of it existing already?
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.
Makes sense. I did not consider importing as we are not yet supporting import/export. Changed and added a test to cover this scenario.
return Response.status(Status.BAD_REQUEST).build(); | ||
} | ||
if (!isOrganizationBroker(broker)) { | ||
throw ErrorResponse.error("Identity provider not found with the given alias", Status.NOT_FOUND); |
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.
Shouldn't the message indicate that no provider with the specified alias is currently bound to the org? If you prefer we can create a follow up issue to revisit all messages returned from endpoints.
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.
Changed.
d510c71
to
ac3d7a3
Compare
Closes keycloak#29268 Signed-off-by: Pedro Igor <pigor.craveiro@gmail.com>
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.
Approving based on the review from @sguilhen
Closes #29268
Depends on for #29064.