cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Guido Casper <gcas...@s-und-n.de>
Subject Re: Another fw-auth question
Date Wed, 12 Jan 2005 10:30:22 GMT
Jon Tonberg wrote:
> Hello Guido
> 
> Thanks for your reply.
>  
> 
>>>                        <!--map:parameter name="param_username" 
>>>value="{request-param:username}"/>
>>>                        <map:parameter name="param_password" 
>>>value="{request-param:password}"/-->
>>
>>I think that should be:
>>
>>   <map:parameter name="param_username" value="{request-param:name}"/>
>>   <map:parameter name="param_password" 
>>value="{request-param:passwd}"/>
> 
> 
> Surely this depends on what I have named the <INPUT> fields in my login form? 
E.g. <INPUT NAME="username">, <INPUT NAME="password">.
> 
> Or am I mistaken?

Ah, yes sorry.

Actually this depends on the names you gave to the paremeters of your 
"auth-login" Action (the "parameter_" part ist stripped).

So you have to name it "parameter_username" instead of "param_username".

<map:act type="auth-login">
   <map:parameter name="handler" value="auth-handler"/>
   <map:parameter name="parameter_username" 
value="{request-param:username}"/>
   <map:parameter name="parameter_password" 
value="{request-param:password}"/>
   <map:redirect-to uri="{request-param:resource}"/>
</map:act>

Another option might be (as Jan suggested) to remove the "raw:" from you 
authetication uri.

Guido

-- 
Freundliche Grüße / With kind regards
Guido Casper

S&N AG
Competence Center Open Source
Klingenderstr. 5
D 33100 Paderborn

voice  +49 5251/1581-87
fax    +49 5251/1581-71
eMail  gcasper@s-und-n.de
Web    http://www.s-und-n.de

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message