Skip to content

Commit

Permalink
Add explicit getter method for organizations in RealmAdminResource
Browse files Browse the repository at this point in the history
- makes OrganizationsResource reachable to OpenAPI generator

Closes keycloak#30832

Signed-off-by: Stefan Guilhen <sguilhen@redhat.com>
  • Loading branch information
sguilhen authored and pedroigor committed Oct 21, 2024
1 parent 8581886 commit b03ce00
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 115 deletions.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@
import org.keycloak.models.utils.KeycloakModelUtils;
import org.keycloak.models.utils.ModelToRepresentation;
import org.keycloak.models.utils.RepresentationToModel;
import org.keycloak.organization.admin.resource.OrganizationsResource;
import org.keycloak.partialimport.PartialImportResult;
import org.keycloak.partialimport.PartialImportResults;
import org.keycloak.representations.adapters.action.GlobalRequestResult;
Expand Down Expand Up @@ -553,6 +554,10 @@ public static ManagementPermissionReference toUsersMgmtRef(AdminPermissionManage
return ref;
}

@Path("organizations")
public OrganizationsResource organizations() {
return new OrganizationsResource(session, auth, adminEvent);
}

@Path("{extension}")
public Object extension(@PathParam("extension") String extension) {
Expand Down

This file was deleted.

0 comments on commit b03ce00

Please sign in to comment.