Unable to invoke a custom endpoint from another custom endpoint
Hi Everyone,
Since Khoros migrated to AWS from their private data center, I started seeing an issue with one of our existing functionality. We are actually invoking a custom end point from another custom endpoint using http.client.request
After migration, this started giving us "401 Authorization Required" HTML response.
Below is the call which is having the issue:
<#assign pointValueResp= http.client.request(lithium_endpoint_url + "/get_message_point_value?postId=${parentPostId}").get()/>
where lithium_endpoint_url is communitystage url (https://communitystage.help.ea.com/ea/plugins/custom/electronicarts/ea), get_message_point_value is a custom endpoint and parentPostId is a parameter.
As a workaround, I am able to fix this issue on stage by adding a Authorization header to this call as below:
<#assign pointValueResp= http.client.request(lithium_endpoint_url + "/get_message_point_value?postId=${parentPostId}").header("Authorization","Basic " + lithium_auth_token).get()/>
How can this be fixed with whitelisting instead of adding a header?
Thanks and Regards,
Sunil Methra
This should be fixed. An IP in our white list was not a valid IP format and it caused problems with basic auth.