Symptom
- It is not possible to create multiple connections using the same connection information to S/4HANA Cloud using the OAuth type in SAC.
- First connection works fine, and after adding a second connection with exactly the same parameters, the following error message appears:
"invalid_grant,
Provided authorization grant is invalid.Exception was The assertion has already been consumed.For more information,
consult the kernel traces or the OAuth 2.0 trouble shooting SAP note 1688545"
Environment
- SAP Analytics Cloud (Enterprise)
- SAP S/4HANA Public Cloud
- OAuth 2 SAML Bearer Assertion
Reproducing the Issue
- Logon to SAC.
- Create a connection to S/4HANA Public Cloud with OAuth authentication.
- Notice that it works fine.
- Attempt to create a second connection to the same S/4HANA system using the same connection parameters.
- Notice that it fails with the error message that the assertion has already been consumed.
Cause
- This is a by-design behavior in SAC.
- SAML2.0 Bearer Token can be used once, as the OAuth authentication flow can only take the same token once. Attempting to use the same token will show the error message that it has already been consumed.
Resolution
- Create another Communication User in S/4HANA Cloud with another Configured Client (SAC --> App Integration) as the new Client Key and Secret will have a dedicated SAML2.0 Bearer token.
- With a second Communication User, you will be able to create another Live Connection to the same S/4HANA Cloud system.
See Also
- 2569847 - Where can you find SAC user assistance (help) to use, configure, and operate it more effectively?
- Have a question? Ask it here and let our amazing SAP community help! Or reply and share your knowledge!
- 2487011 - What information do I need to provide when opening a case for SAP Analytics Cloud?
- 2511489 - Troubleshooting performance issues in SAP Analytics Cloud
- Search for SAP Analytics Cloud content using SAP for Me, Google or Bing:
- https://me.sap.com/servicessupport/search#?q=SAP%20Analytics%20Cloud%20OR%20SAC&tab=All
- https://www.google.com/search?q=site%3Ahttps%3A%2F%2Fuserapps.support.sap.com+SAP+Analytics+Cloud
- https://www.bing.com/search?q=site%3Ahttps%3A%2F%2Fuserapps.support.sap.com+SAP+Analytics+Cloud
- Note: Add relevant text or warning/error messages to the text search field to filter results.
- SAP Analytics Cloud Connection Guide
- Getting Started with SAP Analytics Cloud Expert Community page
- SAP Analytics Cloud Get More Help and SAP Support
- Need More Help? Contact Support or visit the solution finder today!
Your feedback is important to help us improve our knowledge base.
Keywords
live, saml, s4hc, oauth, bearer, token, public, auth, , KBA , LOD-ANA-LDC-HAN , SAC Live Data Connection HANA , Problem
Product
SAP Analytics Cloud all versions