Exemplo n.º 1
0
 @RequestMapping(value = "/approveRequests", method = RequestMethod.GET)
 @ResponseBody
 public List<AuthorizationApplications> listAreqs() {
   Subject subject = SecurityUtils.getSubject();
   String username = (String) subject.getPrincipal();
   return oauthorizationApplicationsService.findWaitForApproveByResourceOwner(username);
 }