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!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...