Class OrganizationIdentityProvidersResource
java.lang.Object
org.keycloak.organization.admin.resource.OrganizationIdentityProvidersResource
-
Constructor Summary
ConstructorsConstructorDescriptionOrganizationIdentityProvidersResource(KeycloakSession session, OrganizationModel organization, AdminEventBuilder adminEvent) -
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.Responsejakarta.ws.rs.core.ResponsegetGroups(String alias, String search, String searchQuery, Boolean exact, Integer first, Integer max, boolean briefRepresentation, boolean subGroupsCount) Returns organization groups for the identity provider with the specified alias.getIdentityProvider(String alias)
-
Constructor Details
-
OrganizationIdentityProvidersResource
public OrganizationIdentityProvidersResource(KeycloakSession session, OrganizationModel organization, AdminEventBuilder adminEvent)
-
-
Method Details
-
addIdentityProvider
@POST @Consumes("application/json") public jakarta.ws.rs.core.Response addIdentityProvider(String id) -
getIdentityProviders
@GET @Produces("application/json") public Stream<IdentityProviderRepresentation> getIdentityProviders() -
getIdentityProvider
@Path("{alias}") @GET @Produces("application/json") public IdentityProviderRepresentation getIdentityProvider(@PathParam("alias") String alias) -
getGroups
@Path("{alias}/groups") @GET @Produces("application/json") public Stream<GroupRepresentation> getGroups(@PathParam("alias") String alias, @QueryParam("search") String search, @QueryParam("q") String searchQuery, @QueryParam("exact") @DefaultValue("false") Boolean exact, @QueryParam("first") Integer first, @QueryParam("max") Integer max, @QueryParam("briefRepresentation") @DefaultValue("true") boolean briefRepresentation, @QueryParam("subGroupsCount") @DefaultValue("false") boolean subGroupsCount) Returns organization groups for the identity provider with the specified alias. It allows filtering and displaying only the organization groups that are valid for the given identity provider. Only returns groups if the identity provider is associated with the organization and the organization is enabled. Otherwise, returns an error or empty stream.- Parameters:
alias- the identity provider aliassearch- a string to search for in group namessearchQuery- a query to search for group attributes, in the format 'key1:value1 key2:value2'exact- if true, perform exact match on the search parameterfirst- the position of the first result (pagination offset)max- the maximum number of results to returnbriefRepresentation- if true, return brief group representation; otherwise return full representation- Returns:
- a stream of organization groups associated with the organization
-
delete
@Path("{alias}") @DELETE @Produces("application/json") public jakarta.ws.rs.core.Response delete(@PathParam("alias") String alias)
-