Package org.keycloak.authorization.admin
Class ScopeService
java.lang.Object
org.keycloak.authorization.admin.ScopeService
- Author:
- Pedro Igor
-
Constructor Summary
ConstructorDescriptionScopeService
(KeycloakSession session, ResourceServer resourceServer, AuthorizationProvider authorization, AdminPermissionEvaluator auth, AdminEventBuilder adminEvent) -
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.Response
create
(ScopeRepresentation scope) jakarta.ws.rs.core.Response
jakarta.ws.rs.core.Response
jakarta.ws.rs.core.Response
jakarta.ws.rs.core.Response
jakarta.ws.rs.core.Response
getPermissions
(String id) jakarta.ws.rs.core.Response
getResources
(String id) jakarta.ws.rs.core.Response
update
(String id, ScopeRepresentation scope)
-
Constructor Details
-
ScopeService
public ScopeService(KeycloakSession session, ResourceServer resourceServer, AuthorizationProvider authorization, AdminPermissionEvaluator auth, AdminEventBuilder adminEvent)
-
-
Method Details
-
create
@POST @Consumes("application/json") @Produces("application/json") public jakarta.ws.rs.core.Response create(ScopeRepresentation scope) -
update
@Path("{id}") @PUT @Consumes("application/json") @Produces("application/json") public jakarta.ws.rs.core.Response update(@PathParam("id") String id, ScopeRepresentation scope) -
delete
-
findById
@Path("{id}") @GET @Produces("application/json") public jakarta.ws.rs.core.Response findById(@PathParam("id") String id) -
getResources
@Path("{id}/resources") @GET @Produces("application/json") public jakarta.ws.rs.core.Response getResources(@PathParam("id") String id) -
getPermissions
@Path("{id}/permissions") @GET @Produces("application/json") public jakarta.ws.rs.core.Response getPermissions(@PathParam("id") String id) -
find
@Path("/search") @GET @Produces("application/json") public jakarta.ws.rs.core.Response find(@QueryParam("name") String name) -
findAll
-