Package io.meeds.oauth2.server.rest
Class OAuthClientRest
java.lang.Object
io.meeds.oauth2.server.rest.OAuthClientRest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateClient(OAuthClientRestEntity oAuthClient) voiddeleteClient(String clientId) getClientByParam(Principal principal, String clientId, boolean includeAll) getClients(Principal principal, boolean includeAll) voidupdateClientActivation(String clientId, boolean enabled) voidupdateClientLogoUrl(String clientId, String logoUrl) voidupdateClientRedirectName(String clientId, String name) voidupdateClientRedirectUris(String clientId, Set<String> redirectUris) voidupdateClientScopes(String clientId, Set<String> scopes) voidupdateClientUrl(String clientId, String url) voidupdateClientVisibility(String clientId, boolean displayed)
-
Constructor Details
-
OAuthClientRest
public OAuthClientRest()
-
-
Method Details
-
getClients
@GetMapping @Secured("users") public List<OAuthClientRestEntity> getClients(Principal principal, @RequestParam(name="all",required=false,defaultValue="false") boolean includeAll) -
getClient
@GetMapping("/{clientId}") @Secured("users") public OAuthClientRestEntity getClient(Principal principal, @PathVariable("clientId") String clientId, @RequestParam(name="all",required=false,defaultValue="false") boolean includeAll) -
getClientByParam
@GetMapping("by-param") @Secured("users") public OAuthClientRestEntity getClientByParam(Principal principal, @RequestParam("clientId") String clientId, @RequestParam(name="all",required=false,defaultValue="false") boolean includeAll) -
createClient
@PostMapping @ResponseStatus(NO_CONTENT) @Secured("administrators") public OAuthClientRestEntity createClient(@RequestBody OAuthClientRestEntity oAuthClient) -
deleteClient
@DeleteMapping("/{clientId}") @ResponseStatus(NO_CONTENT) @Secured("administrators") public void deleteClient(@PathVariable("clientId") String clientId) -
updateClientRedirectName
-
updateClientUrl
-
updateClientLogoUrl
-
updateClientRedirectUris
-
updateClientScopes
-
updateClientVisibility
@PatchMapping(path="/{clientId}/display", consumes="application/x-www-form-urlencoded") @ResponseStatus(NO_CONTENT) @Secured("administrators") public void updateClientVisibility(@PathVariable("clientId") String clientId, @RequestParam("displayed") boolean displayed) -
updateClientActivation
@PatchMapping(path="/{clientId}/enable", consumes="application/x-www-form-urlencoded") @ResponseStatus(NO_CONTENT) @Secured("administrators") public void updateClientActivation(@PathVariable("clientId") String clientId, @RequestParam("enabled") boolean enabled)
-