â2024 Jun 03 9:47 AM - edited â2024 Jun 03 11:08 AM
Dear All,
We are trying to access sharepoint online from SAP MDK app via REST API. We do have the client credentials all the configurations are in place. This means we are able to access and create folder on SHarepoint online using POSTMAN. However, while doing the same thing using Fetch Javascript gives CORS error which is understandable . So, trying the next possible way via destinations in SAP Mobile services returns a 401-Unauthorised error which could be because , I may not have set up the destinations correctly. Could anyone please help me , I have spent a lot of time and tried all possible combinations but without any luck.
Here are the details:
Call from Postman: 200
The call from MDK: 401 using the destination
The destination set up in Mobile services:
In BTP Cockpit
Kindly let me know if you feel there is other way to get this working.
Note: This deployed in cloud foundry and both as mobile and web application.
@bill_froelich , @Jitendra_Kansal78
Best Regards,
Geet
Request clarification before answering.
Have you tried using OAuth2 Client Credentials as the security type in Mobile Services instead of OAuth2 SAML Bearer Assertion?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear Bill,
Sorry for my delayed answer. Yes, I had already tried oauth2clientcrendentials as my first approach. However it turned out that it was the problem with the way url encoded data is transmitted and was causing the request to fail due to incorrect credentials.
Best Regards,
Geet
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 11 | |
| 6 | |
| 5 | |
| 4 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.