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!

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...

Splunk APM: New Product Features + Community Office Hours Recap!

Howdy Splunk Community! Over the past few months, we’ve had a lot going on in the world of Splunk Application ...

Index This | Forward, I’m heavy; backward, I’m not. What am I?

April 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...