05-20-2022 07:31 AM
While accessing Umbrella Reporting API(reports.api.umbrella.com), it is redirecting to another hostname(api.us.reports.umbrella.com) without passing the required bearer token in the header.
It is the behaviour of all HttpClients implementation.
Hence, while accessing the API, it is returning as "401 Unauthorised".
In Postman , if the option "Follow Authorisation Header" is selected, then we are getting successful response.
How do we acheive it through code. Tried the exact java sample available in Github. it is failing.
03-13-2023 12:34 PM - edited 03-13-2023 12:35 PM
Hi there,
Please see the following guidance: https://developer.cisco.com/docs/cloud-security/#!reporting/http-redirects-and-request-authorization-header
In addition, please note that the above points to the new Umbrella API (reporting v2 will be EOL this September 2023). You can find guidance for the new reporting endpoints by following this link. The reference to these endpoints can be found here.
Thanks,
Yaron
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide