Custom Validator for Jira REST APIs


I am trying to create an app which will use the custom validator to authenticate the REST APIs. Here’s the flow I am trying to achieve:

  1. The rest API will be called with an authentication token
  2. My validator will process this token to check the validity of the request.
  3. If the request is valid, the rest API will be called and response will be sent back.

Another approach I am trying to use is to define a separate proxy endpoint for my validator which will call the REST API on behalf of the user. But since Jira supports 3 legged OAuth authentication, this is not possible.

I appreciate any help I can get.