In environments using Okta-based scripted authentication for SAML, users may report failures when creating tokens for themselves or other SAML users.
Although SAML login parameters (such as base URL and IdP settings) are valid, token creation relies specifically on the Okta apiKey.
If this key is incorrect, expired, or rotated without updating Splunk, token generation fails while login continues to work as expected.
User Impact:
- SAML users cannot create authentication tokens.Token-based API workflows and integrations are disrupted.
Cause of the issue:
- The Okta apiKey configured in Splunk was either incorrect or no longer valid. SAML authentication continued to work because it does not rely on the apiKey, whereas token creation depends on successful Okta API calls, which require a valid apiKey.
1: Observed Behavior:
- SAML users receive a “user does not exist” error during token creation.
- Users can still log in successfully via SAML.
2: Log Analysis:
- Internal logs were reviewed using this SPL:
index="_internal" source="*splunk_scripted_authentication_okta.log"
- Warnings indicated an invalid or incorrect baseUrl and/or apiKey.
- Message observed:
splunk_scripted_authentication_okta - WARNING - It appears your baseUrl and/or apiKey are incorrect. Check your Okta instance URL and search the Okta documentation to retrieve the apiKey: "Create the token | Okta Developer"
- Errors began occurring after a specific timestamp, suggesting a configuration change or key rotation.
1: Generate or retrieve a valid Okta API key from the Okta Admin/Developer console.
2: Update the apiKey value in the Splunk Okta scripted authentication configuration.
3: Restart or reload the authentication configuration as required.
4: Verify that SAML users could successfully create tokens.
Refer to Okta documentation for steps to generate and update the API key as needed: Okta Developer Documentation
| Revision | Publish Date | Comments |
|---|---|---|
1.0 |
01-Oct-2026
|
Initial Release |