Class IdentityProviderResource
java.lang.Object
org.keycloak.services.resources.admin.IdentityProviderResource
- Author:
- Pedro Igor
-
Field Summary
-
Constructor Summary
ConstructorDescriptionIdentityProviderResource
(AdminPermissionEvaluator auth, RealmModel realm, KeycloakSession session, IdentityProviderModel identityProviderModel, AdminEventBuilder adminEvent) -
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.Response
Add a mapper to identity providerjakarta.ws.rs.core.Response
delete()
Delete the identity providervoid
Delete a mapper for the identity providerjakarta.ws.rs.core.Response
Export public broker configuration for identity providerGet the identity providerReturn object stating whether client Authorization permissions have been initialized or not and a referencegetMapperById
(String id) Get mapper by id for the identity providerGet mappers for identity providerGet mapper types for identity providerReturn object stating whether client Authorization permissions have been initialized or not and a referencetoMgmtRef
(IdentityProviderModel model, AdminPermissionManagement permissions) void
Update a mapper for the identity providerjakarta.ws.rs.core.Response
update
(IdentityProviderRepresentation providerRep) Update the identity provider
-
Field Details
-
logger
protected static final org.jboss.logging.Logger logger
-
-
Constructor Details
-
IdentityProviderResource
public IdentityProviderResource(AdminPermissionEvaluator auth, RealmModel realm, KeycloakSession session, IdentityProviderModel identityProviderModel, AdminEventBuilder adminEvent)
-
-
Method Details
-
getIdentityProvider
Get the identity provider- Returns:
-
delete
@DELETE public jakarta.ws.rs.core.Response delete()Delete the identity provider- Returns:
-
update
@PUT @Consumes("application/json") public jakarta.ws.rs.core.Response update(IdentityProviderRepresentation providerRep) Update the identity provider- Parameters:
providerRep
-- Returns:
-
export
Export public broker configuration for identity provider- Parameters:
format
- Format to use- Returns:
-
getMapperTypes
@GET @Path("mapper-types") public Map<String,IdentityProviderMapperTypeRepresentation> getMapperTypes()Get mapper types for identity provider -
getMappers
@GET @Path("mappers") @Produces("application/json") public Stream<IdentityProviderMapperRepresentation> getMappers()Get mappers for identity provider -
addMapper
@POST @Path("mappers") @Consumes("application/json") public jakarta.ws.rs.core.Response addMapper(IdentityProviderMapperRepresentation mapper) Add a mapper to identity provider- Parameters:
mapper
-- Returns:
-
getMapperById
@GET @Path("mappers/{id}") @Produces("application/json") public IdentityProviderMapperRepresentation getMapperById(@PathParam("id") String id) Get mapper by id for the identity provider- Parameters:
id
-- Returns:
-
update
@PUT @Path("mappers/{id}") @Consumes("application/json") public void update(@PathParam("id") String id, IdentityProviderMapperRepresentation rep) Update a mapper for the identity provider- Parameters:
id
- Mapper idrep
-
-
delete
Delete a mapper for the identity provider- Parameters:
id
- Mapper id
-
getManagementPermissions
@Path("management/permissions") @GET @Produces("application/json") public ManagementPermissionReference getManagementPermissions()Return object stating whether client Authorization permissions have been initialized or not and a reference- Returns:
-
toMgmtRef
public static ManagementPermissionReference toMgmtRef(IdentityProviderModel model, AdminPermissionManagement permissions) -
setManagementPermissionsEnabled
@Path("management/permissions") @PUT @Produces("application/json") @Consumes("application/json") public ManagementPermissionReference setManagementPermissionsEnabled(ManagementPermissionReference ref) Return object stating whether client Authorization permissions have been initialized or not and a reference- Returns:
- initialized manage permissions reference
-