Class ClientAuthResource
java.lang.Object
io.jans.configapi.core.rest.BaseResource
io.jans.configapi.rest.resource.auth.ConfigBaseResource
io.jans.configapi.rest.resource.auth.ClientAuthResource
@Path("/clients/authorizations")
@Produces("application/json")
@Consumes("application/json")
@ApplicationScoped
public class ClientAuthResource
extends ConfigBaseResource
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.ResponsedeleteClientAuthorization(@NotNull String userId, @NotNull String clientId, @NotNull String userName) Revoke all authorizations for the specified user on the specified client.jakarta.ws.rs.core.ResponsegetClientAuthorization(@NotNull String userId) Retrieves the client authorizations associated with the specified user.Methods inherited from class io.jans.configapi.rest.resource.auth.ConfigBaseResource
getMaxCountMethods inherited from class io.jans.configapi.core.rest.BaseResource
checkNotEmpty, checkNotEmpty, checkNotNull, checkNotNull, checkNotNull, checkResourceNotNull, createSearchRequest, findRootError, getBadRequestException, getBadRequestException, getBadRequestException, getHttpHeaders, getHttpRequest, getInternalServerException, getInternalServerException, getMissingAttributeError, getNotAcceptableException, getNotFoundError, getNotFoundError, getUriInfo, throwBadRequestException, throwBadRequestException, throwBadRequestException, throwInternalServerException, throwInternalServerException, throwInternalServerException, throwInternalServerException, throwMissingAttributeError, throwNotFoundException, throwNotFoundException
-
Constructor Details
-
ClientAuthResource
public ClientAuthResource()
-
-
Method Details
-
getClientAuthorization
@GET @Path("{userId}") public jakarta.ws.rs.core.Response getClientAuthorization(@PathParam("userId") @NotNull @NotNull String userId) Retrieves the client authorizations associated with the specified user.- Parameters:
userId- the user identifier whose client-to-scope authorizations are retrieved- Returns:
- a map from Client to the set of authorized Scope objects for the specified user
-
deleteClientAuthorization
@DELETE @Path("{userId}/{clientId}/{username}") public jakarta.ws.rs.core.Response deleteClientAuthorization(@PathParam("userId") @NotNull @NotNull String userId, @PathParam("clientId") @NotNull @NotNull String clientId, @PathParam("username") @NotNull @NotNull String userName) Revoke all authorizations for the specified user on the specified client.- Parameters:
userId- the identifier of the user whose authorizations will be revokedclientId- the identifier of the client from which the user's authorizations will be removeduserName- the username associated with the authorizations to remove- Returns:
- HTTP 204 No Content response when the authorizations are successfully removed
-