Hello,
I have set up a basic authetication page using the authentication-manager and implementing the Authenticator interface with my own class, which works fine. However I need to pass information back via the request object within this class but the two parameters for Authenticator are of type SourceParameters and HandleConfiguration, neither of which provide me access to the request object nor allow me to utilise ObjectModelHelper in any way in order to obtain the request object. Is the only way I can accomplish this not to use the authentication model but instead break it down into separate actions which will allow me access to the request? I would rather not do this if possible. The relevant areas of my sitemap are shown below.
Thanks.
<!-- define some authentication for protected pages -->
<authentication-manager>
<handlers>
<handler name="testauth">
<redirect-to uri="password-login"/>
<authentication authenticator="au.edu.anu.SimpleAuthenticator"/>
</handler>
</handlers>
</authentication-manager>
</map:component-configurations><map:pipeline>
<!-- entry to show the login page -->
<map:match pattern="password-login">
<map:call function="handleForm">
<map:parameter name="function" value="passwordLogin"/>
<map:parameter name="form-definition" value="forms/password-login.xml"/>
</map:call>
</map:match>
<!-- entry to start the authentication process (auth-login action). Note that the parameter element's name attribute's value MUST start with "parameter_" according to the doco -->
<map:match pattern="login"> <map:act type="auth-login">
<map:parameter name="handler" value="testauth"/>
<map:parameter name="parameter_userid" value="{request-param:userid}"/>
<map:parameter name="parameter_password" value="{request-param:password}"/>
</map:act>
<!-- authentication failed: -->
<map:redirect-to uri="http://myInitialScreen"/> </map:match>
<map:match pattern="logout"> <map:act type="auth-logout"> <map:parameter name="handler" value="testauth"/> </map:act> </map:match>
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
