Andrea Cosentino created CAMEL-23452:
----------------------------------------

             Summary: camel-keycloak: Add Organizations API operations 
(Keycloak 26+)
                 Key: CAMEL-23452
                 URL: https://issues.apache.org/jira/browse/CAMEL-23452
             Project: Camel
          Issue Type: Improvement
          Components: camel-keycloak
            Reporter: Andrea Cosentino


Keycloak 26 introduced a new "Organizations" primitive that allows realms to 
model multi-tenant scenarios (companies, customers, etc.) with members and 
identity-provider links.

The Keycloak admin client 26.0.8 (already a dependency of camel-keycloak) 
exposes the Organizations API via OrganizationsResource and 
OrganizationResource, but these are not yet surfaced as Camel operations.

h3. Proposed new KeycloakOperations
* createOrganization
* updateOrganization
* deleteOrganization
* getOrganization
* listOrganizations
* searchOrganizations
* addOrganizationMember
* removeOrganizationMember
* listOrganizationMembers
* linkOrganizationIdentityProvider
* unlinkOrganizationIdentityProvider
* listOrganizationIdentityProviders

Each operation should follow the existing pattern in {{KeycloakProducer}} 
(switch-on-operation, headers in {{KeycloakConstants}}, integration test 
against the testcontainers-based Keycloak in {{camel-test-infra-keycloak}}).

h3. References
* Keycloak Admin REST API: {{/admin/realms/\{realm\}/organizations}}
* {{KeycloakProducer.java}} in {{camel-keycloak}} as the implementation template

h3. Acceptance criteria
* All operations are added to {{KeycloakOperations}} enum and implemented in 
{{KeycloakProducer}}
* New header constants added to {{KeycloakConstants}}
* Integration tests cover the happy path for each operation
* {{keycloak-component.adoc}} is updated with operation documentation and an 
example




--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to