Class AuthorizedClientEndpoint
java.lang.Object
com.broadleafcommerce.auth.server.web.endpoint.AuthorizedClientEndpoint
@FrameworkRestController
@FrameworkMapping("/servers/{serverId}/clients")
public class AuthorizedClientEndpoint
extends Object
-
Field Summary
-
Constructor Summary
ConstructorDescriptionAuthorizedClientEndpoint
(AuthorizedClientService<AuthorizedClient> authorizedClientService, AuthorizationServerService<AuthorizationServer> authorizationServerService) -
Method Summary
Modifier and TypeMethodDescriptioncreateAuthorizedClient
(String serverId, AuthorizedClient authorizedClient) void
org.springframework.data.domain.Page<AuthorizedClient>
readAllAuthorizedClients
(String serverId, org.springframework.data.domain.Pageable pageable) readAuthorizedClientById
(String serverId, String id) replaceAuthorizedClientById
(String serverId, String id, AuthorizedClient authorizedClient)
-
Field Details
-
BASE_URI
- See Also:
-
-
Constructor Details
-
AuthorizedClientEndpoint
public AuthorizedClientEndpoint(AuthorizedClientService<AuthorizedClient> authorizedClientService, AuthorizationServerService<AuthorizationServer> authorizationServerService)
-
-
Method Details
-
readAllAuthorizedClients
@FrameworkGetMapping @Policy(permissionRoots="AUTHORIZATION_SERVER", operationTypes=READ) public org.springframework.data.domain.Page<AuthorizedClient> readAllAuthorizedClients(@PathVariable("serverId") String serverId, @PageableDefault(size=50) org.springframework.data.domain.Pageable pageable) -
readAuthorizedClientById
@FrameworkGetMapping("/{id}") @Policy(permissionRoots="AUTHORIZATION_SERVER", operationTypes=READ) public AuthorizedClient readAuthorizedClientById(@PathVariable("serverId") String serverId, @PathVariable("id") String id) -
replaceAuthorizedClientById
@FrameworkPutMapping("/{id}") @Policy(permissionRoots="AUTHORIZATION_SERVER", operationTypes=UPDATE) public AuthorizedClient replaceAuthorizedClientById(@PathVariable("serverId") String serverId, @PathVariable("id") String id, @RequestBody AuthorizedClient authorizedClient) -
createAuthorizedClient
@FrameworkPostMapping @Policy(permissionRoots="AUTHORIZATION_SERVER", operationTypes=CREATE) public AuthorizedClient createAuthorizedClient(@PathVariable("serverId") String serverId, @RequestBody AuthorizedClient authorizedClient) -
delete
-