|
Home > Archive > WebSphere Portal Server > January 2004 > SSO using IBM Web Page Portlet v5.0
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
SSO using IBM Web Page Portlet v5.0
|
|
| razvan.pintea 2004-01-28, 2:36 am |
| Hello,
We are trying to integrate an external Web application into an WebSphere Portal 5 by using IBM Web Page Portlet v5.0. The Web application supports form-based authentication and we want to access it via single sign on.
The situation is as follows:
- One WebSphere Portal has been freshly installed on one Windows machine named "wsp"
- The Web Application (we want to integrate) is running on another Windows machine named "app".
- DNS has been configured to recognize wsp as wsp.mydomain.ro and "app" as app.mydomain.ro
- Starting from the default portal installation, we have created a new page containing one IBM Web Page Portlet V5.0. We have set the following portlet properties:
-- URL as http://app.mydomain.ro/default.jsp
-- Login URL as http://app.mydomain.ro/login.jsp
-- User Parameter Name: j_username
-- Password Parameter Name: j_password
-- A new credential slot has been created with "user1" as user name and "pass1" as password.
Note that if we provide the following GET request in an browser running on "wsp" machine (outside the Portal) http://app.mydomain.ro/login.jsp?j_..._password=pass1
the login to the Web Application is successful.
But using the portlet, the authentication fails!
1) What settings apart from DNS should be made on Portal and/or Web application to have them in the same domain mydomain.com?
2) Are there any other settings to be made on Portal and/or Web application side in order to have successful SSO login?
Thanks in advance,
Razvan Pintea
| |
|
| Can the "login.jsp" handle "POST"?
My guess is that if your "login.jsp" only handles GET and the portlet is
trying to POST "user1" and "pass1" to your "login.jsp" page, the portlet
will fail.
Beside specifying j_username and j_password, can you specify the method
(POST/GET)? If you can, try to change it to GET without changing your
"login.jsp". If switching between POST and GET is not available, add codes
to handle POST method as well (use same codes in GET).
LTH.
"razvan.pintea" <razvanp@intrarom.ro> wrote in message
news:1935659760.1075305889759.JavaMail.wasadmin@swg3ws006...quote:
> Hello,
>
> We are trying to integrate an external Web application into an WebSphere
Portal 5 by using IBM Web Page Portlet v5.0. The Web application supports
form-based authentication and we want to access it via single sign on.quote:
>
> The situation is as follows:
> - One WebSphere Portal has been freshly installed on one Windows machine
named "wsp"quote:
> - The Web Application (we want to integrate) is running on another Windows
machine named "app".quote:
> - DNS has been configured to recognize wsp as wsp.mydomain.ro and "app" as
app.mydomain.roquote:
> - Starting from the default portal installation, we have created a new
page containing one IBM Web Page Portlet V5.0. We have set the following
portlet properties:quote:
> -- URL as http://app.mydomain.ro/default.jsp
> -- Login URL as http://app.mydomain.ro/login.jsp
> -- User Parameter Name: j_username
> -- Password Parameter Name: j_password
> -- A new credential slot has been created with "user1" as user name and
"pass1" as password.quote:
>
> Note that if we provide the following GET request in an browser running on
"wsp" machine (outside the Portal)
http://app.mydomain.ro/login.jsp?j_..._password=pass1quote:
> the login to the Web Application is successful.
>
> But using the portlet, the authentication fails!
>
> 1) What settings apart from DNS should be made on Portal and/or Web
application to have them in the same domain mydomain.com?quote:
> 2) Are there any other settings to be made on Portal and/or Web
application side in order to have successful SSO login?quote:
>
> Thanks in advance,
> Razvan Pintea
| |
| razvan.pintea 2004-01-29, 2:33 am |
| Thanks for your answer, but unfortunately the solution is not so easy.
The Web Application (we want to integrate) accepts both GET and POST methods. It has the start page with a FORM like this:
<FORM METHOD="POST" ACTION="login.jsp">
Name: <INPUT type="text" name="j_username"><br>
Password: <INPUT type="password" name="j_password"><br>
<INPUT TYPE="submit" name="login" value="login">
</FORM>
We also test the authentication procedure using a browser running on "wsp" machine (outside the Portal), which send a POST request to the Web Application. The procedure was successful.
Also using Web Clipping Portlet in the same context, the authentication procedure is successful.
But with IBM Web Page Portlet v5.0 the authentication still fails.
|
|
|
|
|