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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

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