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!

Improve Your Security Posture

Watch NowImprove Your Security PostureCustomers are at the center of everything we do at Splunk and security ...

Maximize the Value from Microsoft Defender with Splunk

 Watch NowJoin Splunk and Sens Consulting for this Security Edition Tech TalkWho should attend:  Security ...

This Week's Community Digest - Splunk Community Happenings [6.27.22]

Get the latest news and updates from the Splunk Community here! News From Splunk Answers ✍️ Splunk Answers is ...