Class OAuthConsentRest

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

@RestController @RequestMapping("/rest/consents") public class OAuthConsentRest extends Object
  • Constructor Details

    • OAuthConsentRest

      public OAuthConsentRest()
  • Method Details

    • getConsents

      @GetMapping @Secured("users") public List<OAuthConsent> getConsents(Principal principal)
    • deleteConsentsByUser

      @DeleteMapping @ResponseStatus(NO_CONTENT) @Secured("users") public void deleteConsentsByUser(Principal principal)
    • deleteConsentByUserAndClient

      @DeleteMapping("/{clientId}") @ResponseStatus(NO_CONTENT) @Secured("users") public void deleteConsentByUserAndClient(Principal principal, @PathVariable("clientId") String clientId)
    • deleteConsentsByClient

      @DeleteMapping("/{clientId}/all") @ResponseStatus(NO_CONTENT) @Secured("administrators") public void deleteConsentsByClient(@PathVariable("clientId") String clientId)