Class OAuthClientRest

java.lang.Object
io.meeds.oauth2.server.rest.OAuthClientRest

@RestController @RequestMapping("/rest/clients") public class OAuthClientRest extends Object
  • 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

      @PatchMapping(path="/{clientId}/name", consumes="application/x-www-form-urlencoded") @ResponseStatus(NO_CONTENT) @Secured("administrators") public void updateClientRedirectName(@PathVariable("clientId") String clientId, @RequestParam("name") String name)
    • updateClientUrl

      @PatchMapping(path="/{clientId}/url", consumes="application/x-www-form-urlencoded") @ResponseStatus(NO_CONTENT) @Secured("administrators") public void updateClientUrl(@PathVariable("clientId") String clientId, @RequestParam("url") String url)
    • updateClientLogoUrl

      @PatchMapping(path="/{clientId}/logo-url", consumes="application/x-www-form-urlencoded") @ResponseStatus(NO_CONTENT) @Secured("administrators") public void updateClientLogoUrl(@PathVariable("clientId") String clientId, @RequestParam("logoUrl") String logoUrl)
    • updateClientRedirectUris

      @PatchMapping(path="/{clientId}/uris", consumes="application/x-www-form-urlencoded") @ResponseStatus(NO_CONTENT) @Secured("administrators") public void updateClientRedirectUris(@PathVariable("clientId") String clientId, @RequestParam("redirectUri") Set<String> redirectUris)
    • updateClientScopes

      @PatchMapping(path="/{clientId}/scopes", consumes="application/x-www-form-urlencoded") @ResponseStatus(NO_CONTENT) @Secured("administrators") public void updateClientScopes(@PathVariable("clientId") String clientId, @RequestParam("scope") Set<String> scopes)
    • 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)