[Jhs-leads] DEP SSO

Maheu, Mike Mike.Maheu@dep.state.fl.us
Wed, 22 Jun 2005 10:32:19 -0400


This is a multi-part message in MIME format.

------_=_NextPart_001_01C57737.3209AD90
Content-Type: text/plain;
	charset="US-ASCII"
Content-Transfer-Encoding: quoted-printable

All,

The SSO is now integrated with WACA and the new Oracle Security schema,
although there is a little work to be done with the WACA roles. =
Currently you
can authenticate with your WACA credentials and the few users in the SSO
schema can use those credentials as well. The User object will be in the
request and I have noted the code in the bottom of this email on how to =
get
this object from the Request. Once you get the User object, it will be =
your
apps responsibility to put it in the Session or track it how you want. =
We
will go over the getter methods of the User object in the Jumpstart on
Friday.=20

=20

Mike

=20

=20

JSP code to get the User object: (change accordingly to put in a Servlet =
or
Action class)

=20

<%@ page import=3D"fdep.sso.cas.user.User"%>=20

<%User user =3D (User)request.getAttribute("user");%>

=20

=20

Currently you can get the Role if you are authenticating against the SSO
schema like so:

String role =3D user.getUserRole();


------_=_NextPart_001_01C57737.3209AD90
Content-Type: text/html;
	charset="US-ASCII"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns=3D"http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">
<meta name=3DGenerator content=3D"Microsoft Word 11 (filtered medium)">
<style>
<!--
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman";}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{color:purple;
	text-decoration:underline;}
span.EmailStyle17
	{mso-style-type:personal-compose;
	font-family:Arial;
	color:windowtext;}
@page Section1
	{size:8.5in 11.0in;
	margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
	{page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext=3D"edit">
  <o:idmap v:ext=3D"edit" data=3D"1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=3DEN-US link=3Dblue vlink=3Dpurple>

<div class=3DSection1>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>All,<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>The SSO is now integrated with WACA <b><span
style=3D'font-weight:bold'>and</span></b> the new Oracle Security =
schema,
although there is a little work to be done with the WACA roles. =
Currently you
can authenticate with your WACA credentials and the few users in the SSO =
schema
can use those credentials as well. The User object will be in the =
request and I
have noted the code in the bottom of this email on how to get this =
object from
the Request. Once you get the User object, it will be your apps =
responsibility
to put it in the Session or track it how you want. We will go over the =
getter
methods of the User object in the Jumpstart on Friday. =
<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Mike<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>JSP code to get the User object: (change accordingly =
to put
in a Servlet or Action class)<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>&lt;%@ page =
import=3D&quot;fdep.sso.cas.user.User&quot;%&gt; =
<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>&lt;%User user =3D
(User)request.getAttribute(&quot;user&quot;);%&gt;<o:p></o:p></span></fon=
t></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Currently you can get the Role if you are =
authenticating
against the SSO schema like so:<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>String role =3D =
user.getUserRole();<o:p></o:p></span></font></p>

</div>

</body>

</html>

------_=_NextPart_001_01C57737.3209AD90--