Security

Splunk Java Api connect with SSO

pranay036
Engager

I have to create a java application that can fetch results from splunk searches. I am able to do it easily with my local installation of spunk using methods given in tutorials(Basic Authentication). But when I use the same code with my organization's splunk, the connection request is timed out. My organization's splunk server is accessible only through SingleSignOn (SSO). How do I connect with the splunk server with the Java API ? I am listing my code which worked well for local installation(Basic Authentication)

serviceArgs loginArgs = new ServiceArgs();
    loginArgs.setUsername("My_Uname");
    loginArgs.setPassword("My_Pass");
    loginArgs.setHost("localhost");
    loginArgs.setPort(8089);
    Service service = Service.connect(loginArgs);

smileyge
Path Finder

bump? I am working around this with a local splunk account but our security folks would prefer I didn't.

0 Karma
Get Updates on the Splunk Community!

Updated Team Landing Page in Splunk Observability

We’re making some changes to the team landing page in Splunk Observability, based on your feedback. The ...

New! Splunk Observability Search Enhancements for Splunk APM Services/Traces and ...

Regardless of where you are in Splunk Observability, you can search for relevant APM targets including service ...

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...