Splunk Dev

How do I pass session from Js SDK to custom Rest Python script?

jbrocks
Communicator

Hi all,

I have a Splunk App with React and JS SDK, that calls a custom REST endpoint, that calls a Python script, which uses Splunk Python SDK. Is there a way to pass the session from the logged in User using the Dashboard from JS/REST to the Python script, so that I do not need to write the authentication details for the Python SDK connection in a file?

Best regards!

Labels (4)
0 Karma
Get Updates on the Splunk Community!

Splunk App Dev Community Updates – What’s New and What’s Next

Welcome to your go-to roundup of everything happening in the Splunk App Dev Community! Whether you're building ...

The Latest Cisco Integrations With Splunk Platform!

Join us for an exciting tech talk where we’ll explore the latest integrations in Cisco + Splunk! We’ve ...

Enterprise Security Content Update (ESCU) | New Releases

In April, the Splunk Threat Research Team had 2 releases of new security content via the Enterprise Security ...