code: @GET
      @Produces(MediaType.APPLICATION_JSON)
      @Path("/check_oauth_access")
      @Description("Returns redirectURI based on whether this user has previously accepted the authorization page")
      public OAuthAcceptResponseDto checkOauthAccess(@Context HttpServletRequest req) {
          String userName=findUserByToken(req);
          int result = authService.countByUserId(userName);
          OAuthAcceptResponseDto responseDto = new OAuthAcceptResponseDto();
          if (result==0) {
              throw new OAuthException(ResponseCodes.ERR_FINDING_USERNAME, HttpResponseStatus.BAD_REQUEST);
          }
          else {
              responseDto.setRedirectURI(applicationRedirectURI);
              return responseDto;
          }
      }
docs: Returns redirectURI based on whether this user has previously accepted the authorization page
  
  @param req  The Http Request with authorization header
  @return     Returns either redirectURI or OauthException