Skip to Content

iOS Assistant - Metadata download failed even in Basic Authentication

I am using iOS Assistant version 1.2.4 and XCode is 8.3.3

I am following this document to create one iOS project based on sample service of HCPms

https://www.sap.com/developer/tutorials/fiori-ios-hcpms-sdk-assistant.html

metadata is at (hiding the account)

https://mobile-aab??????.dispatcher.hana.ondemand.com/mobileservices/Admin/ESPM.svc/$metadata

Please consider the point, Our HCPms is configured to authenticate via ADFS which is understood that it will not Accept SAP Identity Credentials S'Id. HCPms accepts credentials from third party Identity Provider(Microsoft's ADFS).

thus in order to check metadata we gives above url and ADFS page opens where we give our domain credentials and then we can see metadata. so far so good.

After doing step by step progress of that document i got the error - Metadata download failed. It seems iOS assistant is designed to authenticate via S ids whereas in our environment it is encountering third party identity provider which results in failure downloading metadata.

Please guide in such environment how can i generate and test the iOS app in simulator.

Snapshots attached.

Regards

Ashkar

OTE Group of Companies,Oman

1.png2.png3.png4.png5.png6.png

Tested again, this time iOS Assistant throws error "Project Generation failed" and then i checked the event log in HCPms i found

"Finished sending request to back end https://mobile-aabXXXXXX.dispatcher.hana.ondemand.com/mobileservices/Admin/ESPM.svc/$metadata in 203 ms. HTTP status from the back end is 302."

Please suggest what can be the issue.

Regards

Ashkar

OTE Group of Companies,Oman

1.png (48.5 kB)
2.png (116.1 kB)
3.png (92.3 kB)
4.png (84.3 kB)
5.png (178.5 kB)
6.png (57.6 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Aug 14, 2017 at 09:11 AM

    Ashkar,

    Please configure your Mobile Services account to use SAML authentication (in the Assistant Preferences) - this will allow you to use your ADFS authentication that you've configured in your SAP Cloud Platform account.

    Thanks
    Andreas

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Ashkar,

      I am Csaba Pocsai from the SAP Assistant development team. As I know you can share your logs in the SAP Document center. It would be very helpful to see what is happening on your side.

      It would be also great if you could provide us a technical configuration (username/password included) to check this behaviour on our side and fix it. Is there any way to do that?

      Thanks in advance!

      Regards,

      Csaba

  • Aug 21, 2017 at 12:30 PM

    As an update to anybody else having this problem. We have analyzed this and found a bug in the way we've handled Custom IdPs that have been configured for HTTP redirect binding (instead of HTTP POST). The next patch/release will contain a fix for this.

    For now, please use HTTP POST binding in SAP CP Cockpit, if possible.

    Thanks
    Andreas

    Add comment
    10|10000 characters needed characters exceeded