Quantcast
Channel: SCN : Discussion List - SAP HANA Cloud Platform Developer Center
Viewing all articles
Browse latest Browse all 3131

Launch HCP app with credentials in header

$
0
0

Hi,

 

I'm building a demo application which first requires a whole lot of calibration operations in c# (kinect) and as a final step, it must launch a UI5 application on HCP.

 

(and in due time, I'll post a blog on what I built, how it works, sources and the whole 9-yards)

 

But it the meanwhile, I'm facing a serious issue.

I can't seem to launch the URL to my application directly, with logon credentials in the header, because HCP keeps redirecting me back to https://accounts.sap.com/saml2/idp/sso/accounts.sap.com

 

 

current source code:

            string user = "user";

            string pass = "pass";

            string url = "https://bobbytables-usertrial.dispatcher.hanatrial.ondemand.com/";

           string authHdr = "Authorization: Basic " + Convert.ToBase64String(Encoding.ASCII.GetBytes(user + ":" + pass)) + "\r\n";

 

            this.browser.Navigate(url, null, null, authHdr);

 

So I'm hashing the user and pass, and I put them in my request headers.

For any normal website, that does the trick.

For HCP, it doesn't because SAP's SAML quadruple SSO gets in the way (again)

 

Any ideas?

 

(before the questions pop up on: why CSharp? Because most kinect related sample code is in CSharp, and I never used CSharp before, so it seemed like a fun idea)


Viewing all articles
Browse latest Browse all 3131

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>