You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by sudheerc <su...@eloan.com> on 2007/08/02 23:33:03 UTC
New entry in pipelines.xml
Hi,
I am trying to add another step in the pipelines.xml (Security Question and
Answer portlet after successful login). I have created a new valve for
Security Q and A., but I have no clue on how to create a PageProfilerValve
with a locator for this new Security Q and A portlet. Any ideas ?
Thanks,
Sudheer.
--
View this message in context: http://www.nabble.com/New-entry-in-pipelines.xml-tf4208941.html#a11973241
Sent from the Jetspeed - User mailing list archive at Nabble.com.
Re: New entry in pipelines.xml
Posted by David Sean Taylor <da...@bluesunrise.com>.
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'/>
Re: New entry in pipelines.xml
Posted by sudheerc <su...@eloan.com>.
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.
-Sudheer.
Woonsan Ko wrote:
>
> Hi Sudheer,
>
> As far as I understand, you are trying to redirect the request to a new
> page after successful
> login.
> How about create a new psml page containing Security QnA portlet?
> IMHO, your valve can invoke RequestContext.getResponse().sendRedirect("a
> new psml page") in your
> valve. (See o.a.j.security.impl.SecurityValveImpl and
> o.a.j.security.impl.AbstractSecurityValve.)
>
> Regards,
>
> Woonsan
>
> --- sudheerc <su...@eloan.com> wrote:
>
>>
>> Hi,
>>
>> I am trying to add another step in the pipelines.xml (Security Question
>> and
>> Answer portlet after successful login). I have created a new valve for
>> Security Q and A., but I have no clue on how to create a
>> PageProfilerValve
>> with a locator for this new Security Q and A portlet. Any ideas ?
>>
>>
>> Thanks,
>> Sudheer.
>> --
>> View this message in context:
>> http://www.nabble.com/New-entry-in-pipelines.xml-tf4208941.html#a11973241
>> Sent from the Jetspeed - User mailing list archive at Nabble.com.
>>
>
>
>
>
> ____________________________________________________________________________________
> Choose the right car based on your needs. Check out Yahoo! Autos new Car
> Finder tool.
> http://autos.yahoo.com/carfinder/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
> For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/New-entry-in-pipelines.xml-tf4208941.html#a11987377
Sent from the Jetspeed - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org
Re: New entry in pipelines.xml
Posted by Woonsan Ko <wo...@yahoo.com>.
Hi Sudheer,
As far as I understand, you are trying to redirect the request to a new page after successful
login.
How about create a new psml page containing Security QnA portlet?
IMHO, your valve can invoke RequestContext.getResponse().sendRedirect("a new psml page") in your
valve. (See o.a.j.security.impl.SecurityValveImpl and o.a.j.security.impl.AbstractSecurityValve.)
Regards,
Woonsan
--- sudheerc <su...@eloan.com> wrote:
>
> Hi,
>
> I am trying to add another step in the pipelines.xml (Security Question and
> Answer portlet after successful login). I have created a new valve for
> Security Q and A., but I have no clue on how to create a PageProfilerValve
> with a locator for this new Security Q and A portlet. Any ideas ?
>
>
> Thanks,
> Sudheer.
> --
> View this message in context:
> http://www.nabble.com/New-entry-in-pipelines.xml-tf4208941.html#a11973241
> Sent from the Jetspeed - User mailing list archive at Nabble.com.
>
____________________________________________________________________________________
Choose the right car based on your needs. Check out Yahoo! Autos new Car Finder tool.
http://autos.yahoo.com/carfinder/
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org