On Aug 3, 2007, at 10:06 AM, sudheerc wrote:


Thanks Woonsan for the response. I need little more than redirect, as I want the control be back to the Jetspeed after this new psml is visited by the user, so that I can load the roles for the logged-in user after successfully
answering the security question in this new psml.

Hmm... I could recommend an elaborate way to use pipelines, but it really seems best to solve this inside one custom authentication portlet I recently developed an MFA-type solution that involved several phases of question/answers, catpcha, etc... Each of the phases were implemented as a JSF page, all inside a single custom Login Portlet running in a webapp separate from j2-admin I suggest implementing your own custom Login Portlet and handling the authentication logic inside your portlet and finally redirect to the login proxy (/login/proxy) once you are satisfied that the user is ready to formerly login

Here is the basic JSP code to get you going on the redirect (which should be executed safely within a portlet action)

<c:set var="requestContext" value="<%=request.getAttribute (RequestContext.REQUEST_PORTALENV)%>"/> <c:set var="portalContextPath" value="$ {requestContext.request.contextPath}"/>
<c:if test="${empty portalContextPath}">
  <c:set var="portalContextPath" value="/"/>
</c:if>

<c:set var="destLogin" value="/login/proxy"/>

...

<input type='hidden' value='<c:url context="${portalContextPath}" value="${destLogin}"/>' name='redirect' id='redirect'/>


Reply via email to