Building for the Splunk Platform

Alternative to username:password for KV Store

wstrellis
New Member

I am working on a Splunk app that uses the KV Store.

When a request is made to the kv store a pop up window appears on the screen prompting the user to enter their username and password.

This is the code making the request:

 

 fetchFoos() {
return fetch(
"servicesNS/nobody/myapp/storage/collections/data/foo",
{
mode: "cors",
credentials: "include",
}
)
.then((response) => response.json())
.then((json) => json)
.catch((err) => err)

 

I do not want to hard code a username and password into the headers.

 

Is there a way to use the kv store with session cookies or tokens such as HEC so the user does not have to re-enter their credentials?

 

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

Splunk Forwarders and Forced Time Based Load Balancing

Splunk customers use universal forwarders to collect and send data to Splunk. A universal forwarder can send ...

NEW! Log Views in Splunk Observability Dashboards Gives Context From a Single Page

Today, Splunk Observability releases log views, a new feature for users to add their logs data from Splunk Log ...

Last Chance to Submit Your Paper For BSides Splunk - Deadline is August 12th!

Hello everyone! Don't wait to submit - The deadline is August 12th! We have truly missed the community so ...