20

CSRF token is missing in MDK Client 6.3.4 for iOS

 2 years ago
source link: https://answers.sap.com/questions/13810932/csrf-token-is-missing-in-mdk-client-634-for-ios.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client
Feb 07 at 03:07 AM

CSRF token is missing in MDK Client 6.3.4 for iOS

168 Views Last edit Feb 08 at 02:54 PM 2 rev

Hello experts,

I face a confusing issue with SAM MDK 6.3.4 when it runs on iOS. I receive the following error on my first attempt to call the backend: CSRF token is missing. The issue is reproducible with the application Mobile Svc installed from AppStore as well as with custom MDK client build v.6.3.3 and 6.3.3

The service endpoint is OData v.4 and the error is observed only on iOS: on real device and simulator. It works without issue on Android

There are 2 strange things about the error:

  • it seems the error is thrown by the backend, because JSON error object looks like this:

{"error":{"code":"/IWBEP/CM_V4H_RUN/043","message":"CSRF token is missing","@SAP__common.ExceptionCategory":"CSRF_Token_Missing"}

  • I don’t register any call to the backend on NW Gateway client traces

Do you fetch this CSRF token during the application boarding? Do you use a technical user for this? Do you have any explanation or hint what I could miss and how I can further investigate is something is wrong with the application?

Regards,

Dimiter


Recommend

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK