Hi Derek,

The user informations are given by the "auth-protect" action.
So you can't access these infos the same way without using the action.

A workaround is to store these infos in session with the SessionPropagatorAction, just after a successfull login.

That's what I'm doing and it works fine.
--
Olivier Billard

Derek Hohls wrote:
I know its poissible to pass authentication info
to a protected match:

<map:match pattern="protected">
<map:act type="auth-protect">
<map:parameter name="handler" value="demohandler"/> <map:generate src="docs/protected.xml"/>
<map:transform src="stylesheets/simple-page2html.xsl">
<map:parameter name="userID" value="{session-context:authentication/authentication/ID}"/>
</map:transform> <map:serialize/>
</map:act>
<!-- something was wrong, redirect to login page -->
<map:redirect-to uri="login"/>
</map:match>


But how do I pass the same session-context in a normal, unprotected match, this:

<map:match pattern="unprotected">
<map:generate src="docs/unprotected.xml"/>
<map:transform src="stylesheets/simple-page2html.xsl">
<map:parameter name="userID" value="{session-context:authentication/authentication/ID}"/>
</map:transform> <map:serialize/>
</map:match>


Does not seem to work?

Thanks
Derek



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



Reply via email to