When making a POST request to OAuth Token URL, the following error messages occur:
- The redirect_uri has an invalid domain.
- Authorization Request Error There was an error. The request for authorization was invalid.
- SAP Analytics Cloud Wave 2022.21.x
Reproducing the Issue
- Create a POST request to the following URL <SAC-Tenant>/oauth/token
- Under the Authorization tab select the type as OAuth 2.0 and fill out the following fields accordingly: Token Name - <anything you want>, Grant Type - Authorization Code, Callback URL - <SAC-Tenant>/oauth/authorize, Auth URL - <SAC-Tenant>/oauth/authorize, Access Token URL - <SAC-Tenant>/oauth/token, Client ID - <string>, Client Secret - <string>.
- Click Get New Access Token.
- Observe the error response as described in the symptom.
There is a mismatch between the grant type of authorization code and the purpose of the OAuth Client created in the App Integration page in SAP Analytics Cloud.
The OAuth Client must have a selected purpose of Interactive Usage and NOT API access.
The former supports a (3 legged) grant type of Authorization Code and the latter supports a (2 legged) grant type of Client Credentials.
- 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 an incident for SAP Analytics Cloud?
- SAP Analytics Cloud > Learning > Guided Playlists
- SAP Analytics Cloud > Learning > Guided Playlists > Getting Support
- Need More Help? Contact Support or visit the solution finder today!
Your feedback is important to help us improve our knowledge base.
SAP Cloud for Planning, sc4p, c4p, cforp, cloudforplanning, Cloud for Analytics, Cloud4Analytics, CloudforAnalytics, Cloud 4 Planning, BOC, SAPBusinessObjectsCloud, BusinessObjectsCloud, BOBJcloud, BOCloud., SAC, SAP AC, Cloud-Analytics, CloudAnalytics, SAPCloudAnalytics,Error, Issue, System, Data, User, Unable, Access, Connection, Sac, Connector, Live, Acquisition, Up, Set, setup, Model, BW, Connect, Story, Tenant, Import, Failed, Using, Working, SSO, sapanalyticscloud, sap analytical cloud, sap analytical cloud, SAC, SAP Data Warehouse Cloud, DWC, OAuth, API, SCIM , KBA , LOD-ANA-AUT , SAC Authentication / Login , Problem