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!

Observability | How to Think About Instrumentation Overhead (White Paper)

Novice observability practitioners are often overly obsessed with performance. They might approach ...

Cloud Platform | Get Resiliency in the Cloud Event (Register Now!)

IDC Report: Enterprises Gain Higher Efficiency and Resiliency With Migration to Cloud  Today many enterprises ...

The Great Resilience Quest: 10th Leaderboard Update

The tenth leaderboard update (11.23-12.05) for The Great Resilience Quest is out >> As our brave ...