All Apps and Add-ons

REST API and JWT Authentication

tmarlette
Motivator

So I'm attempint to use the REST API modular input to authenticate and pull down data from a custom Express API. I can connect and pull data via cURL, though the authentication is via JWT auth token.

the cURL command looks like this:

`curl https://my/URL-demo/api/splunkexport/ -H "Authorization: JWT <JWT auth token here>"

in the REST API Modular input, there is no selection for the JWT authentication.

Does anyone have any experience with this?

Tags (1)
0 Karma
1 Solution

tmarlette
Motivator

I had to rewrite the API modular input to accept this. This was no easy task.

View solution in original post

0 Karma

tmarlette
Motivator

I had to rewrite the API modular input to accept this. This was no easy task.

0 Karma

pedromvieira
Communicator

I also have an API with JWT Bearer token. Can you share your script please?

jtrujillo
Path Finder

^what this guy said.

0 Karma
Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...