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:
- The rest API will be called with an authentication token
- My validator will process this token to check the validity of the request.
- 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.