cancel
Showing results for 
Search instead for 
Did you mean: 

using SSO with hotmail account

Former Member
0 Kudos

Hi ,

I need to create an iview which takes me directly to my mail account in hotmail . I tried doing it in the same way as it is done for the yahoo account given in HowToUseAppIntegrator_en.pdf , but it didn't work . In the browser IE it does not display the page at all giving an error "access denied" . I mozilla it though takes me the login page of hotmail but does not login . It asks for the password . I believe hotmail page is a .net page . Could someone please suggest me a solution ?

Regards

Deepak Singh

Accepted Solutions (1)

Accepted Solutions (1)

detlev_beutner
Active Contributor
0 Kudos

Hi Deepak,

in addition, see my answers in /thread/89630 [original link is broken] for further details how to determin these things.

Hope it helps

Detlev

PS: Please consider rewarding points for helpful answers on SDN. Thanks in advance!

Former Member
0 Kudos

Hi Detlev

What I can understand from your suggestion is that I need a URL which can directly take me to the LOGGED IN page for my hotmail account .If I have understood it correctly then my situation is as follows

user for hotmail account : demo_user_sat_corp@hotmail.com

pwd : open123

So my working URL would be

https://login.passport.com/ppsecure/post.srf?id=2&svc=mail&cbid=24325&msppjph=1&tw=0&fs=1&fsa=1&fsat...

This takes me to the login page of hotmail which says the following message at the top

"The e-mail address or password is incorrect. Please retype the e-mail address and password, or sign up if you haven't already done so. Need help signing in?"

Then do you think there would be a page which will pass the password in the URL and take me to the LOGGED IN page of the website . I am not too sure about this as in this case the security feature will get mishandled .

In the other thread suggested by you I wanted to try the same but I am not able to find a site which uses an asp login page for registration where I can register and log back in to check the scenario . Do you think you can suggest one ?

I think your inputs will lead me to a solution . Will appreciate if can you put a little more effort to be a bit descriptive in your suggestion .

Regards

Deepak Singh

Former Member
0 Kudos

Sorry Detlev , the first part of my reply should have been adressed to Robert .

detlev_beutner
Active Contributor
0 Kudos

Hi Deepak,

> which will pass the password in the URL and take me to

> the LOGGED IN page of the website

Just this is not the case (normally). The same could misunderstanding could be the reason why the link you've given doesn't work - check out how the "form" element starts:

<form name="f1" style="margin:0px;" method="POST"

- which means the parameters are expected as POST parameters (and not as GET parameters within the URL). If on server side even GET parameter would be retrieved correctly totally depends on the concrete implementation (which you'll never know).

Anyhow, it doesn't play any role if the backend is .NET with ASP or Java with JSP or whatever - the basics are the same, simple HTML / HTTP.

Hope it helps

Detlev

Former Member
0 Kudos

Hi Detlev ,

Following is the way I tried to implement it .

I put the system defination as

Name of the server: login.passport.com

port number : Empty

Protocol of the target system : HTTP (If i give HTTPS , IE returns access denied in the error window similar to javascript)

URI of the web application : /ppsecure/post.srf?id=2&svc=mail&cbid=24325&msppjph=1&tw=0&fs=1&fsa=1&fsat=1296000&lc=1033&_lang=EN&bk=1136826726

In the iview properties under the category Content-Generic Launcher

URL template : <System.protocol>://<System.server><System.uri>?<Authentication>

URL template fraction for user mapping : PPSX=<MappedUser>&PwdPad=<MappedPassword>

Now when I take the preview of the iview It takes me to a page of Microsoft passport network but then it is not the complete page as the following message appears

"The page is unavailable or no longer exists

The page you're trying to find is either temporarily unavailable or no longer exists.

Please do one of the following:

Click your browser's Refresh button to try reconnecting to the page.

Check the spelling of the web address in your browser's address bar.

Click your browser's Back button to go back to the previous page. "

Looks like it is trying to take me to the page but the complete URL is not getting formed at the runtime .

Can you suggest where am I going wrong ?

Regards

Deepak Singh

Former Member
0 Kudos

Something to update . I checked the source code for the page of hotmail . I found that the form which is displaing the login details is using the names of the fields as "login" and "passwd" .

The hidden fields "PPSX" has a value " PassportRN " and the field "PwdPad" has a null passed in the form . This is when I check the URL in the action statement .

Now in the iview properties I am passing

Application Parameters : PPSX=PassportRN&PwdPad=null

URL template fraction for user mapping : login=<MappedUser>&passwd=<MappedPassword>

Still I am getting the same response on the page when I see the preview of the iview .

Please let me know if I am going wrong somewhere while I am passing the parameters in the iview properties .

Regards

Deepak Singh

detlev_beutner
Active Contributor
0 Kudos

Hi Deepak,

if I check the input fields of the form, I see in addition the parameter <i>PPFT</i> (value = "B8AknNqI7cMch!nI32KjgyjyHarkzKc!qRNbF3zLJq7ckRQTJRSPinwV6YF0SuH0w!xJ0H5achfYP5SwXwntPVArM3" in my test case, but that sounds like a control sequence, which makes it possible that AppInt doesn't work the easy way).

I'm unsure how to pass the RadioButtons value (maybe it's needed on server side), an approach would be "LoginOptions=3".

Hope it helps

Detlev

Former Member
0 Kudos

Hi Detlev ,

Let's forget about hotmail for a while . Let's say I have an application which has a logon page accessible by the following URL

http://www.servername.com/MyIView/login.aspx

This page is just a login page which when supplied with the login credentials will take to the next page which is displaying some data from the server .My job is to integrate this application to portal and make it appear as an iview . I am using the application Integrator .How I will go about it is...

system defination : www.servername.com

Protocol of target system : http

URI of the web application : /MyIView/login.aspx

I give all kinds of permissions to the users on this system and I also assign all kinds of roles to this system . Hope this will make it available wherever required and to whomsoever required .

Now I make the iview . In the iview properties under the heading Content-Generic Launcher

URL template : <System.protocol>://<System.server><System.uri>?<Authentication>

To find out the entry for "URL template fraction for user mapping" I go to the HTML sorce code of the page .What I found was this

<input name="TextBox1" type="text" id="TextBox1" style="Z-INDEX: 101; LEFT: 264px; POSITION: absolute; TOP: 104px" />

<input name="TextBox2" type="password" id="TextBox2" style="Z-INDEX: 102; LEFT: 264px; POSITION: absolute; TOP: 144px" />

<span id="lblUserName" style="Z-INDEX: 103; LEFT: 184px; POSITION: absolute; TOP: 104px">User Name:</span>

<span id="lblPassword" style="Z-INDEX: 104; LEFT: 184px; POSITION: absolute; TOP: 144px">Password:</span>

So this is what I conclude

URL template fraction for user mapping : TextBox1=<MappedUser>&TextBox2=<MappedPassword>

I also found this in the HTML source code

<input type="hidden" name="__VIEWSTATE" value="dDw1OTMzNjc5Nzg7Oz6vDZP0Rmm1UH76iDtu3kGP82yPSw==" />

So I pass this in application parameters

Application Parameters : __VIEWSTATE=dDw1OTMzNjc5Nzg7Oz6vDZP0Rmm1UH76iDtu3kGP82yPSw==

I completed all the user mapping and stuff that is required for the same . Basically i followed each and evry step mentioned in HowToUseAppIntegrator_en.pdf .

Now when I go to see the preview of the same it takes me to the login page and does not take to the data page directly as I expected . Can you help me understand what am I missing here to integrate the application .

Anyone else might want to shed some light on it . I have a deadline to meet which ends in a few hours and would highly appreciate an urgent HELP !

Regards

Deepak Singh

detlev_beutner
Active Contributor
0 Kudos

Hi Deepak,

> http://www.servername.com/MyIView/login.aspx

> This page is just a login page

The question is to what URL the form gets submitted (maybe to the same URL, but probably to another; in the latter case you would also need to call this other URL instead of the login page).

> URI of the web application : /MyIView/login.aspx

This maybe is the problem. I've already shown how to determin the destination if it is set explicitely within the form ("action"), see the link I have referred to in my first answer.

Hope it helps

Detlev

Former Member
0 Kudos

Hey Detlev ,

That was an excellent hint . It worked We achieve this by passing the location of the currently used CSS stylesheet to our iView and using the css classes which are defined in this stylesheet within our pages.

Modify the entry in the field "URL template" by adding "&cssurl=<LAF.StylesheetUrl>". So your URL template should now look like this: "<System.protocol>://<System.server><System.uri>?<Authentication>&cssurl=<LAF.StylesheetUrl>"

With this another URL parameter called "cssurl" (again you can certainly pick any other name for this) will be passed to your page. This parameter will contain the URL of the currently used CSS style sheet during runtime, which you can then use on your page. ]

They though are talking about the paramert and how this will effect the branding but what I am not able to understand is , where I put the URL for my stylesheet ? In which property of the iview I write the URL of my stylesheet ?

I am using the sneak preview version of the software . It is EP 6.0 SP9 . Does this have to do anything , for me , not being able to identify the paramter in the view ?

Regards

Deepak Singh

detlev_beutner
Active Contributor
0 Kudos

Hi Deepak,

> I need to do the SAP branding for my page

Be aware that this only works if the application integrated is aware of the passed CSS and makes use of it!!!

> where I put the URL for my stylesheet

As written in the text: Just add it in the URL template.

On the app side, read the param per JS from the URL and include the corresponding CSS and make use of it. But if you integrate an application which is not under your hands, this has no sense.

Hope it helps

Detlev

Former Member
0 Kudos

Deltev ,

I appreciate the way you have been following this thread and extending your support . I am closing this thread and rewarding you full points for the same .

Regards

Deepak Singh

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Deepak,

you need first to find out the URL that would get you in, so that you can recreate it with the AppIntegrator.

For this go to the Hotmail Login Page, open the HTLM source code of the page and search for "<form". Make sure you get the correct URL string and the correct parameters to use (like for username, password and maybe also other that are needed).

My first check revealt the URL "https://login.passport.com/ppsecure/post.srf?id=2&svc=mail&cbid=24325&msppjph=1&tw=0&fs=1&fsa=1&fsat=1296000&lc=1031&_lang=DE&bk=1136805314", paramter for username = "PPSX" and for password = "PwdPad".

Make sure you have a working URL (like the above URL "https://login.passport.com/ppssecure...bk=1136805314&PPSX=YOUR_USERNAME&PwdPad=YOUR_PASSWORD")

that gets you in. Only after this works you'll have the correct parameters for AppIntegrator.

Hope this helps,

Robert

Former Member
0 Kudos

Robert ,

Could you please check out my query in the forum and reply . Forgot to address you seperately .

Regards

Deepak Singh