Java Demo Question
"Gunesh Raj" <[email protected]> Fri, 5 Apr 2002 03:47:32 +0800
| Newsgroups | gmane.comp.sourceid.sso.devel |
|---|---|
| Message-ID | <[email protected]> |
This is a multi-part message in MIME format.
--===============1575628910==
Content-Type: multipart/alternative;
boundary="----=_NextPart_000_0004_01C1DC54.9E744C70"
This is a multi-part message in MIME format.
------=_NextPart_000_0004_01C1DC54.9E744C70
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit
Hi guys,
I have a problem with SourceId's Java Demo, I hope to solve it with your
help.
I ran the SourceID's Java Demo on 2 machines, I followed the Quick
Deployment Steps.
All were fine except of Step 9.
9. After logging in to the sample Identity Provider, you'll be redirected
back to the sample Service Provider, and the two accounts will have been
federated.
and Step 13.
13. After successful authentication, you'll be redirected back to the
Service Provider home page, having now been logged in to both the Identity
Provider and the Service Provider using a single authentication step (at the
IDP).
I could not even test step 14.
The problem is, It did not redirect back to the SP Sample pages, I do know
if the 2 accounts are federated.
Is there a bug?
In the \idp\logon-post.jsp
the snipet below belongs to a condition if the var authnRequest is NOT null,
and my code always goes here.
but strange, both conditions will still redirect to idp/index.jsp page.
// Lastly, pass control back to SourceID, which will consequently pass
control back to the SP.
//RequestDispatcher dispatch =
application.getRequestDispatcher("/sso/authn");
//application.getNamedDispatcher("SourceID-SSO-Authenticator");
//dispatch.forward(request, response);
request.getRequestDispatcher("/idp/index.jsp").forward(request, response);
Should I just comment the request... line and uncomment the
RequestDispatcher codes ?
Please help, thank you.
Gunesh Raj
------=_NextPart_000_0004_01C1DC54.9E744C70
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii">
<META content=3D"MSHTML 6.00.2800.1106" name=3DGENERATOR></HEAD>
<BODY>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D281073719-04042002>Hi=20
guys,</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D281073719-04042002></SPAN></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D281073719-04042002>I have =
a problem=20
with SourceId's Java Demo, I hope to solve it with your=20
help.</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D281073719-04042002></SPAN></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D281073719-04042002></SPAN></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D281073719-04042002>I ran =
the SourceID's=20
Java Demo on 2 machines, I followed the Quick Deployment=20
Steps.</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D281073719-04042002></SPAN></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D281073719-04042002>All =
were fine except=20
of Step 9.</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D281073719-04042002></SPAN></FONT> </DIV>
<DIV><FONT><SPAN class=3D281073719-04042002><STRONG>9.</STRONG> After =
logging in=20
to the sample Identity Provider, you'll be redirected back to the sample =
Service=20
Provider, and the two accounts will have been =
federated.</SPAN></FONT></DIV>
<DIV><FONT><SPAN class=3D281073719-04042002></SPAN></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D281073719-04042002>and =
Step=20
13.</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D281073719-04042002></SPAN></FONT> </DIV>
<DIV><FONT><SPAN class=3D281073719-04042002><STRONG>13.</STRONG> After =
successful=20
authentication, you'll be redirected back to the Service Provider home =
page,=20
having now been logged in to both the Identity Provider and the Service =
Provider=20
using a single authentication step (at the IDP).</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D281073719-04042002></SPAN></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D281073719-04042002>I =
could not even=20
test step 14.</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D281073719-04042002></SPAN></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D281073719-04042002></SPAN></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D281073719-04042002>The =
problem is, It=20
did not redirect back to the SP Sample pages, I do know if the 2 =
accounts are=20
federated.</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D281073719-04042002></SPAN></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D281073719-04042002>Is =
there a=20
bug?</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D281073719-04042002></SPAN></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D281073719-04042002>In the =
\idp\logon-post.jsp</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D281073719-04042002></SPAN></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D281073719-04042002>the =
snipet below=20
belongs to a condition if the var authnRequest is NOT null, and my code =
always=20
goes here.</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D281073719-04042002>but =
strange, both=20
conditions will still redirect to idp/index.jsp =
page.</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D281073719-04042002></SPAN></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D281073719-04042002></SPAN></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D281073719-04042002><FONT=20
color=3D#000080> // Lastly, pass control back to SourceID, which =
will=20
consequently pass control back to the =
SP. <BR> //RequestDispatcher=20
dispatch =3D application.getRequestDispatcher("/sso/authn");=20
//application.getNamedDispatcher("SourceID-SSO-Authenticator");<BR> =
//dispatch.forward(request,=20
response);<BR> <BR> request.getRequestDispatcher("/idp/index.js=
p").forward(request,=20
response);</FONT><BR></SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D281073719-04042002>Should =
I just=20
comment the request... line and uncomment the RequestDispatcher codes=20
?</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D281073719-04042002></SPAN></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D281073719-04042002></SPAN></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D281073719-04042002>Please =
help, thank=20
you.</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D281073719-04042002></SPAN></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D281073719-04042002>Gunesh =
Raj</DIV></SPAN></FONT>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D281073719-04042002></SPAN></FONT> </DIV></BODY></HTML>
------=_NextPart_000_0004_01C1DC54.9E744C70--
--===============1575628910==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
sso-dev mailing list
[email protected]
http://mail.sourceid.org/mailman/listinfo/sso-dev
--===============1575628910==--