Splunk Dev

Python SDK to support SAML?

jordan_hy
Engager

My organization recently updated to SAML for Splunk and I am no longer able to connect to Splunk via the Python SDK. Whenever I try and connect I receive "AuthenticationError: Login failed."

I am trying to connect using the method outlined in the "How to run searches and jobs using the Splunk SDK for Python" post that Splunk published.

Am I doing something incorrectly? Or does the Splunk SDK not support SAML?

Labels (2)
Tags (1)

adamcysec
Engager

Anyone mange to find an answer to this?

Im in the situation with splunk instance configured with SSO.

0 Karma

adamcysec
Engager

I found an article from Splunk about auth tokens: https://docs.splunk.com/Documentation/Splunk/9.0.2/Security/UseAuthTokens

 

Looks like a Splunk admin would be able to create an API token for your account and you could authenticate with the token, like so: https://docs.splunk.com/DocumentationStatic/PythonSDK/1.7.2/client.html?highlight=session#splunklib....

I will have this implemented in my environment and update this post if it worked. 

0 Karma
Get Updates on the Splunk Community!

Splunk at Cisco Live 2025: Learning, Innovation, and a Little Bit of Mr. Brightside

Pack your bags (and maybe your dancing shoes)—Cisco Live is heading to San Diego, June 8–12, 2025, and Splunk ...

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 ...