Class IdentityProviderResource
java.lang.Object
org.keycloak.services.resources.admin.IdentityProviderResource
- Author:
- Pedro Igor
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionIdentityProviderResource(AdminPermissionEvaluator auth, RealmModel realm, KeycloakSession session, IdentityProviderModel identityProviderModel, AdminEventBuilder adminEvent) -
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.ResponseaddMapper(org.keycloak.representations.idm.IdentityProviderMapperRepresentation mapper) Add a mapper to identity providerjakarta.ws.rs.core.Responsedelete()Delete the identity providervoidDelete a mapper for the identity providerjakarta.ws.rs.core.ResponseExport public broker configuration for identity providerorg.keycloak.representations.idm.IdentityProviderRepresentationGet the identity providerorg.keycloak.representations.idm.ManagementPermissionReferenceReturn object stating whether client Authorization permissions have been initialized or not and a referenceorg.keycloak.representations.idm.IdentityProviderMapperRepresentationgetMapperById(String id) Get mapper by id for the identity providerStream<org.keycloak.representations.idm.IdentityProviderMapperRepresentation>Get mappers for identity providerGet mapper types for identity providerbooleanorg.keycloak.representations.idm.ManagementPermissionReferencesetManagementPermissionsEnabled(org.keycloak.representations.idm.ManagementPermissionReference ref) Return object stating whether client Authorization permissions have been initialized or not and a referencevoidUpdate a mapper for the identity providerjakarta.ws.rs.core.Responseupdate(org.keycloak.representations.idm.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 @Produces("application/json") public org.keycloak.representations.idm.IdentityProviderRepresentation 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(org.keycloak.representations.idm.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,org.keycloak.representations.idm.IdentityProviderMapperTypeRepresentation> getMapperTypes()Get mapper types for identity provider -
getMappers
@GET @Path("mappers") @Produces("application/json") public Stream<org.keycloak.representations.idm.IdentityProviderMapperRepresentation> getMappers()Get mappers for identity provider -
addMapper
@POST @Path("mappers") @Consumes("application/json") public jakarta.ws.rs.core.Response addMapper(org.keycloak.representations.idm.IdentityProviderMapperRepresentation mapper) Add a mapper to identity provider- Parameters:
mapper-- Returns:
-
getMapperById
@GET @Path("mappers/{id}") @Produces("application/json") public org.keycloak.representations.idm.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, org.keycloak.representations.idm.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 org.keycloak.representations.idm.ManagementPermissionReference getManagementPermissions()Return object stating whether client Authorization permissions have been initialized or not and a reference- Returns:
-
setManagementPermissionsEnabled
@Path("management/permissions") @PUT @Produces("application/json") @Consumes("application/json") public org.keycloak.representations.idm.ManagementPermissionReference setManagementPermissionsEnabled(org.keycloak.representations.idm.ManagementPermissionReference ref) Return object stating whether client Authorization permissions have been initialized or not and a reference- Returns:
- initialized manage permissions reference
-
reloadKeys
@GET @Path("reload-keys") @Produces("application/json") public boolean reloadKeys()
-