While trying to create a token for a SAML service account this returns a message saying: "User user-example-id does not exist" and forcing to close the pop out window for the process, but after using the local user with the same roles it is able to create tokens as expected.
Failed to get authorization token for client=xxxx-xxxx tenant=xxxx-xxxx with status=401 and response={"error":"invalid_client","error_description":"AADSTS7000215: Invalid client secret provided.
Steps followed to create the token were these, which are correct:
Confirmed the user has log in at least one and Splunk capable of finding it by going into the user's page.
Splunk was able to find the user and the same user test to login with no issues, this confirms the user exist within Splunk. Next thing, confirm the roles the user has and make sure it checks-green all prerequisites to create a token. Prerequisites_for_creating_and_configuring_tokens
Check log messages in $SPLUNK_HOME/var/log/splunk/splunk_scripted_authentication_azure.log, which contains the log related to the SSO integration between Splunk and Azure.
2024-01-11 13:43:43,352 - splunk_scripted_authentication_azure - INFO - Requesting Authentication Token for client=xxxx-xxxx and tenant=xxxx-xxxx.
2024-01-11 13:43:43,665 - splunk_scripted_authentication_azure - ERROR - Failed to get authorization token for client=xxxx-xxxx tenant=xxxx-xxxx with status=401
and response={"error":"invalid_client","error_description":"AADSTS7000215: Invalid client secret provided.
Ensure the secret being sent in the request is the client secret value, not the client secret ID, for a secret added to app 'ef77bdf6-759b-48ef-b382-6796d4e3eda3'.
Trace ID: b0e7bf1a-387c-4a2a-889d-f25480177f03 Correlation ID: 535defcc-8e3a-4145-986f-1525e1bcd38d Timestamp: 2024-01-11 13:43:43Z",
"error_codes":[7000215],"timestamp":"2024-01-11 13:43:43Z","trace_id":"b0e7bf1a-387c-4a2a-889d-f25480177f03",
"correlation_id":"535defcc-8e3a-4145-986f-1525e1bcd38d","error_uri":"https://login.microsoftonline.com/error?code=7000215"}
These messages confirm there was an error with the clientSecret configure on either Splunk or Azure side.
For this specific case, there was no access to the Certificates & Secrets page that comes included on the app, and the person in charge of the app didn't have access to change the clientSecret.
To solve this, delete and recreate the app, in order to set a fresh clientSecret which can be updated in Splunk SAML settings using the below steps. Find the complete list of steps Configure_authentication_extensions
clientIdclientSecrettenantIdMicrosoft Learn Links
Assign-the-azure-ad-test-user
Get-tenant-and-app-id-values-for-signing-in
Service-accounts-principal
Error code index (error code example: AADSTS7000215)
Splunk Links
Configure_authentication_extensions
Prerequisites_for_creating_and_configuring_tokens
| Revision | Publish Date | Comments |
|---|---|---|
1.0 |
29-Sep-2026
|
Initial Release |