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!

How to Send Splunk Observability Alerts to Webex teams in Minutes

As a Developer Evangelist at Splunk, my team and I are constantly tinkering with technology to explore its ...

.conf25 Registration is OPEN!

Ready. Set. Splunk! Your favorite Splunk user event is back and better than ever. Get ready for more technical ...

Detecting Cross-Channel Fraud with Splunk

This article is the final installment in our three-part series exploring fraud detection techniques using ...