Hi
I'm still away from my code (I can send a sample Thurs PM CDT)
IIRC:

<!-- sitemap -->
<map:match pattern="do-login">
<!-- try to login -->
<map:act type="auth-login">
<map:parameter name="handler" value="mainhandler"/>
<map:parameter name="parameter_loginame" value="{request-param:loginame}"/>
<map:parameter name="parameter_password" value="{request-param:password}"/>
<!-- since you have to use a transformer you need to generate a full pipeline here w/o a redirect -->
<map:generate src-file-containing-successful-result-and-merge-auth-context.xml />
<map:transform type="session"/>
<map:serialize/>
<!-- I can't remember the trick I did to handle the redirect case where you are sent to this pipeline
and you need to redirect to someother protected page -->
          <map:redirect-to uri="{request-param:resource}"/>
        </map:act>
        <!-- something was wrong, try it again -->
        <map:redirect-to uri="{request-param:resource}"/>
      </map:match>

Hope this helps, Steve

SS> Hi
SS> I had the same need. I'm not where my source is but if I recall I use the
SS> session transformer within the login pipeline to load the authentication
SS> session info into my own session context only on success. Then this info is
SS> available to all pipelines (either via the session input module or the
SS> session transformer) and I use XSL to add the loginname to the XML if it is
SS> available.
As i suppose, this should be done like this:
<!-- merge-auth-context.xml -->
<session:createcontext name="test"/>
<session:setxml context="test" path="/">
<session:getxml context="authentication" path="/"/>
</session:setxml>
<!-- /merge-auth-context.xml -->


This works fine, but i need to include this code into page that will
be displayed on succesfull login.

And i want this to be original page,
so after login user gets back on page where login form was submitted.

That is:
<!-- sitemap -->
<map:match pattern="do-login">
<!-- try to login -->
<map:act type="auth-login">
<map:parameter name="handler" value="mainhandler"/>
<map:parameter name="parameter_loginame" value="{request-param:loginame}"/>
<map:parameter name="parameter_password" value="{request-param:password}"/>
<map:redirect-to uri="{request-param:resource}"/>
</map:act>
<!-- something was wrong, try it again -->
<map:redirect-to uri="{request-param:resource}"/>
</map:match>
<!-- /sitemap -->


How to deal with this ?

_________________________________________________________________
Is your PC infected? Get a FREE online computer virus scan from McAfeeŽ Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to