|
| IFrame SSO |
 |
Wed, 07 May 2008 21:46:01 GMT |
Hi All
I have my webpage (Authuser.jsp) with the following code
<p><font size="6">UserName :
<%=session.getAttribute("username")%></font></p>
<p><font size="6">Password :
<%=session.getAttribute("password")%></font></p>
I have configured this web page in my iFrame portlet.
In the Login Portlet, i have enabled the SSO and have set the SSO
UserID Key as 'username' and SSO PasswordID key as 'password'.
When i tried to login in the user application and clicked the above
iFrame portlet, i am getting the follow the display
UserName: null
Password: null
please let me know, what should i need to do to get the right values.
Thanks
Sri
--
sriramt
------------------------------------------------------------------------
sriramt's Profile: http://forums.novell.com/member.php?userid=5151
View this thread: http://forums.novell.com/showthread.php?t=327049
|
| Post Reply
|
| Re: IFrame SSO |
 |
Thu, 08 May 2008 04:29:45 GMT |
On 05/07/2008 11:46 PM, sriramt wrote:
> Hi All
>
> I have my webpage (Authuser.jsp) with the following code
>
> <p><font size="6">UserName :
>
<%=session.getAttribute("username")%></font></p>
> <p><font size="6">Password :
>
<%=session.getAttribute("password")%></font></p>
>
> I have configured this web page in my iFrame portlet.
>
> In the Login Portlet, i have enabled the SSO and have set the SSO
> UserID Key as 'username' and SSO PasswordID key as 'password'.
>
> When i tried to login in the user application and clicked the above
> iFrame portlet, i am getting the follow the display
>
> UserName: null
>
> Password: null
>
> please let me know, what should i need to do to get the right values.
>
> Thanks
> Sri
>
>
Does your JSP page present a form that you can fill in the fields, are
you doing a post in the iFrame (preference option)?
What did you put into the UserName and password preferences on iFrame
portlet?
SSO with iFrame needs to either fill some form input controls through
|
| Post Reply
|
| Re: IFrame SSO |
 |
Thu, 08 May 2008 15:36:02 GMT |
I need to pass my authentication credentials, to a JSP page, I did the
following changes in the Login portlet
i have enabled the SSO and have set the SSO
> UserID Key as 'username' and SSO PasswordID key as 'password'.
In the iFrame Portlet, please let me know what i should need to do to
get the credentials (both username & password) in the JSP page.
URL / Parameters : ?
Encode URL PArameters : ?
Encoding : ?
Form Post : let it be True
Authentication : ?
USername : ?
Password : ?
In the JSP Page wat is the coding i should have, to get both the
username & password
<P><FONT SIZE=\"6\">USERNAME :&NBSP;
<%=SESSION.GETATTRIBUTE(\"USERNAME\")%></FONT></P>
<P><FONT SIZE=\"6\">PASSWORD :&NBSP;
<%=SESSION.GETATTRIBUTE(\"PASSWORD\")%></FONT></P>
or
<p><font size="6">Welcome :
<%=request.getParameter("username")%></font></p>
<p><font size="6">Welcome :
<%=request.getParameter("password")%></font></p>
please advice, how to proceed ..
But I good get the username, by simply passing the below URL/
PArameter
username=${User/id}, But I could even get get this even when SSO in not
enabled ...
please let me know the right procedure, to get the values in the IFrame
portlet JSP Page with SSO enabled ...
Thanks
Sri
--
sriramt
------------------------------------------------------------------------
sriramt's Profile: http://forums.novell.com/member.php?userid=5151
View this thread: http://forums.novell.com/showthread.php?t=327049
|
| Post Reply
|
| Re: IFrame SSO |
 |
Thu, 08 May 2008 17:26:28 GMT |
On 05/08/2008 05:36 PM, sriramt wrote:
> I need to pass my authentication credentials, to a JSP page, I did the
> following changes in the Login portlet
>
> i have enabled the SSO and have set the SSO
>> UserID Key as 'username' and SSO PasswordID key as 'password'.
>
> In the iFrame Portlet, please let me know what i should need to do to
> get the credentials (both username & password) in the JSP page.
>
> URL / Parameters : ?
>
> Encode URL PArameters : ?
>
> Encoding : ?
>
> Form Post : let it be True
>
> Authentication : ?
>
> USername : ?
>
> Password : ?
>
> In the JSP Page wat is the coding i should have, to get both the
> username & password
>
> <P><FONT SIZE=\"6\">USERNAME :&NBSP;
>
<%=SESSION.GETATTRIBUTE(\"USERNAME\")%></FONT></P>
> <P><FONT SIZE=\"6\">PASSWORD :&NBSP;
>
<%=SESSION.GETATTRIBUTE(\"PASSWORD\")%></FONT></P>
>
> or
>
> <p><font size="6">Welcome :
>
<%=request.getParameter("username")%></font></p>
> <p><font size="6">Welcome :
>
<%=request.getParameter("password")%></font></p>
>
> please advice, how to proceed ..
>
> But I good get the username, by simply passing the below URL/
> PArameter
>
> username=${User/id}, But I could even get get this even when SSO in not
> enabled ...
>
> please let me know the right procedure, to get the values in the IFrame
> portlet JSP Page with SSO enabled ...
>
> Thanks
> Sri
>
>
Change your JSP to have a form in it, with two input controls one for
username and one for password.
The use URL/Parameters preference to refer to these input controls
username=$
password=$
|
| Post Reply
|
| Re: IFrame SSO |
 |
Thu, 08 May 2008 20:06:01 GMT |
Thanks a lot for your suggestion, but i have a question
is there any way where i could post the credentials values from the
iFrame portlet, so that i could receive the values in the JSP page,
through request.getParameter (). command, So that i avoid using form in
my JSP page.
As i earlier mentioned if i use
username=${User/id} as URL / Form parameter,
I could get the username value using request. getParameter() is there
any way to get the password value also.
please help me
thanks
Sri
jgdasilva;1553728 Wrote:
> On 05/08/2008 05:36 PM, sriramt wrote:
>
> > I need to pass my authentication credentials, to a JSP page, I did
> the
> > following changes in the Login portlet
> >
> > i have enabled the SSO and have set the SSO
> >> UserID Key as 'username' and SSO PasswordID key as 'password'.
> >
> > In the iFrame Portlet, please let me know what i should need to do
> to
> > get the credentials (both username & password) in the JSP page.
> >
> > URL / Parameters : ?
> >
> > Encode URL PArameters : ?
> >
> > Encoding : ?
> >
> > Form Post : let it be True
> >
> > Authentication : ?
> >
> > USername : ?
> >
> > Password : ?
> >
> > In the JSP Page wat is the coding i should have, to get both the
> > username & password
> >
> > <P><FONT SIZE=\"6\">USERNAME :&NBSP;
> >
<%=SESSION.GETATTRIBUTE(\"USERNAME\")%></FONT></P>
> > <P><FONT SIZE=\"6\">PASSWORD :&NBSP;
> >
<%=SESSION.GETATTRIBUTE(\"PASSWORD\")%></FONT></P>
> >
> > or
> >
> > <p><font size="6">Welcome :
> >
<%=request.getParameter("username")%></font></p>
> > <p><font size="6">Welcome :
> >
<%=request.getParameter("password")%></font></p>
> >
> > please advice, how to proceed ..
> >
> > But I good get the username, by simply passing the below URL/
> > PArameter
> >
> > username=${User/id}, But I could even get get this even when SSO in
> not
> > enabled ...
> >
> > please let me know the right procedure, to get the values in the
> IFrame
> > portlet JSP Page with SSO enabled ...
> >
> > Thanks
> > Sri
> >
> >
>
>
> Change your JSP to have a form in it, with two input controls one for
> username and one for password.
>
> The use URL/Parameters preference to refer to these input controls
>
> username=$
> password=$
--
sriramt
------------------------------------------------------------------------
sriramt's Profile: http://forums.novell.com/member.php?userid=5151
View this thread: http://forums.novell.com/showthread.php?t=327049
|
| Post Reply
|
|
|
|
|
|
|
|
|
|