No client certificate selected and other issues on mdk sdk deployment
MiqueiasMaia opened this issue · 10 comments
I'm developing an application using an IAM as identity provider. So, when my app starts, the login page launches.
In SAP MDK SDK console, I'm receiving the following issues (I'm deploying in an Android real device):
chromium: [ERROR:aw_contents_client_bridge.cc(257)] No client certificate selected
chromium: [INFO:CONSOLE(33)] "The key "content" is not recognized and ignored.", source: <myurl>/saml2/sso?sid=0&option=credential (33)
chromium: [INFO:CONSOLE(33)] "The key "1" is not recognized and ignored.", source: <myurl>/saml2/sso?sid=0&option=credential (33)
The login page doesn't show any response (error or succes). Only can't make a request to get a response.
Any way to fix it? How can I config the certificate use to run?
Enabling certificate-base authentication my device hasn't the certificate, so, the correct way to provice the access must be without this way.
An additional comment: it only happens on Android Devices with by mdk build or mobile services app.
@MiqueiasMaia can you share what steps you followed?
@jitendrakansal I'm following this tutorial.
When you click on START in your MDK client, what do you see in your client? Can you share a screenshot?
Can you/your IdP colleagues check if there is any error in the logs that might be helpful in troubleshooting this issue?
Can you also run this URL in a browser (better in a private/incognito window) to check if you see the IdP login page and then if login works there?
After a successful login, you should see a responseCode in the URL and page will display HTTP status 400
you can get AuthorizationEndpointUrl and ClientId from your BrandedSettings.json file OR from Mobile services.
Hi @jitendrakansal ,
The issue is tha sap mdk(foundation-3.4.2.aar) inject javascript on page finished and change global variable(with name "i") of idp page.
That code below in Java class com.sap.cloud.mobile.foundation.authentication.WebViewActivity cause these issue:
view.loadUrl("javascript: var allLinks = document.getElementsByTagName('a'); if (allLinks) {var i;for (i=0; i<allLinks.length; i++) {var link = allLinks[i];var target = link.getAttribute('target'); if (target && target == '_blank') {link.href = 'newtab:'+link.href;link.setAttribute('target','_self');}}}");
Can you change the code above in javascript string?
or How can I override these behavior?
Suggestion:
- Dont use "var" in javascript code.
- Create javascript function or method to do "allLinks" logic.
Great considerations, @shalmany. It's good to have you on our team! 🚀
@shalmany @MiqueiasMaia do you still see this issue?