Skip to Content
0

iOS Assistant - Metadata download failed even in Basic Authentication

Aug 02, 2017 at 03:35 PM

180

avatar image

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)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Andreas Schlosser
Aug 14, 2017 at 09:11 AM
0

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

Show 4 Share
10 |10000 characters needed characters left characters exceeded

Hi Andreas,

I had tried that too. In process to create a project using iOS Assistant, when i reach Cloud Configuration section of iOS Assistant -> Use Existing -> click select. this opens the ADFS Page for authentication. After successful authentication it displays a number, which i am assuming it is the count of Applications of HCPms. At that screen i can't do further whereas I should see existing HCPms Applications to select and proceed further. This is some unexpected behavior when i choose SAML.

Regards,

Ashkar

0

Ashkar,

I'm not clear exactly what's happening there. Do you see the number still in the authentication screen or in the list that is supposed to show the existing applications?

Can you please also extract and share the logs that are produced while you're trying to retrieve the list of existing apps? Please open the 'Console' app (Cmd+Space -> Console), filter for 'Assistant', then reproduce the problem and copy the logs

Thanks
Andreas

0

When SAML is set. then in 'use existing' tab click 'select' this ADFS page opens...

After Successful Authentication this screen appears. now its hangup situation I only can press ESC to come out no way to proceed further.

console log i have taken but is it possible to share it with you over SAP JAM or SAP Document center?

Regards

Ashkar

assistant.png (55.6 kB)
adfs-page.png (77.7 kB)
0
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

0
Andreas Schlosser
Aug 21, 2017 at 12:30 PM
0

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

Share
10 |10000 characters needed characters left characters exceeded