Hi Team,
We are using 2 filters.
First one is to get the token and by getting the token we are going to call the next url with bearer token
First http getting the response but second http method is not giving data
http {
url => "url1"
verb => POST
headers => {
"Content-Type" => "application/encode"
"Authorization" => "Basic auth"
}
target_body => api_token
}
http {
url => "url2"
verb => GET
headers => { "Authorization" => "Bearer %{api_token}" }
target_body => api_response
}