02-15-2025 09:21 AM - edited 02-27-2025 07:45 AM
Hello everyone,
I noticed the following problem today when trying out Cisco Workflows.
A token must be created for authorisation on the Umbrella API (Create Authorization Token - Cloud Security API - Cisco DevNet). I have created the Umbrella API as a ‘HTTP Endpoint target’ in workflows for this purpose.
Since I don't want to generate the token again and again via a manual script after the 3600-minute expiry time, I created the ‘target’ with the basic authentication (which doesn't change that often).
I then built a task that queries the bearer token:
The whole thing also works, I get a valid token back, which I have also tested via Postman.
As soon as I now want to query all tunnels from my umbrella organisation in my next task, e.g. via API, I get a problem.
I have to use my ‘api.umbrella.com’ as the target again, which still uses Basic authentication (In the URL field I have the following limitation ‘Relative URL for System APIs, Device Registration and Target APIs. Does not support specifying fully qualified URL.").
Now I have simply written the Barer token in the header, in the hope that this will overwrite the Basic Auth:
(not the real token)
Unfortunately, that didn't work. When I start these workflows, I can see in the ‘Input’ output that the token is insert, but unfortunately the authorisation does not work.
If I then delete my api.umbrella.com target and create a new one with token authentication (it's really stupid that you can only create a URL once as a target - I have several umbrella tenants that all use the same URL), then this workflow task also works.
Does anyone have such a scenario and was able to solve it?
EDIT
I have deactivated the target ‘Authentication required’.
I then created a workflow for authentication.
In this I have the API key encoded in Base64. This allows me to query the access token from Umbrella and use it in other workflows.
Solved! Go to Solution.
03-06-2025 11:28 PM
EDIT
I have deactivated the target ‘Authentication required’.
I then created a workflow for authentication.
In this I have the API key encoded in Base64. This allows me to query the access token from Umbrella and use it in other workflows.
02-25-2025 08:59 AM
@HannesHeinrich I haven't worked with Umbrella inside of Workflows and I don't know of anyone else that has either so I don't have an answer to your question at this time. The good news is that later this year, likely around Cisco Live US, a native adapter for Cisco Umbrella as a Workflows target should be available.
03-06-2025 11:28 PM
EDIT
I have deactivated the target ‘Authentication required’.
I then created a workflow for authentication.
In this I have the API key encoded in Base64. This allows me to query the access token from Umbrella and use it in other workflows.
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