I am modifying the standard *HandleHTTPRequest* Processor in NiFi to add Oauth2 authentication. The idea is to accept scopes and client_id as part of the processor setup and validate the incoming JWT token against these scopes and client_id.
i am trying to send a JSON Response when the scope or client_id is incorrect as below
@Vamshi245 Yes, HandleHttpRequest and HandleHttpResponse are used in tandem. Behind the processors is a map cache which holds connection session between request/response processors. If your flowfile (json) coming out of custom HandleHttpRequest is delivered to stock HandleHttpResponse, it will send the json to the original connecting client.
If this answer resolves your issue or allows you to move forward, please choose to ACCEPT this solution and close this topic. If you have further dialogue on this topic please comment here or feel free to private message me. If you have new questions related to your Use Case please create separate topic and feel free to tag me in your post.