[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lenya-user
Subject:    Re: Authentication problem in Lenya
From:       florent_andré <florent.andre-dev () 4sengines ! com>
Date:       2010-10-21 9:27:35
Message-ID: 4CC00787.3060803 () 4sengines ! com
[Download RAW message or body]

Hi Brijesh,

What do you try to achieve ? "Export" the Lenya login to another webapp ?

Maybe you could have a look on the login usecase and java class
(modules-core/acusecase)

++

On 10/14/2010 05:05 PM, Brijesh wrote:
> Hello All,
> 
> I have created a login form which authenticate the user. In this form I
> have used lenya's own authentication.
> I have created group and user in lenya cms and used java file as a
> action for authentication,
> just like this
> 
> <map:actions>
> <map:action name="authenticator"
> src="org.apache.lenya.cms.cocoon.acting.DelegatingAuthenticatorAction"    \
> logger="lenya.sitemap.action.authenticator"/> 
> </map:actions>
> 
> and the login sitemap is
> 
> 
> 
> <map:match pattern="checklogin.html">
> <map:act type="authenticator">
> <map:redirect-to uri="userform.html?status=true" session="true"/>
> </map:act>
> <map:redirect-to uri="login.html?status=failed"/>
> </map:match>
> 
> 
> The Version of Lenya is 2.0 and I am using jetty.
> 
> Problem:->
> 
> i> according to the sitemap if authentication is true or false than it
> redirect  userform.html or login.html respectively, but it does not
> change the url . It always shows
> checklogin.html on the url.
> 
> ii> Whenever we login with correct username and password at the first
> time than userform is opened, but after than we use wrong username and
> password than it is also opened and also vice-versa.
> 
> Please Suggest me
> 
> Thanks,
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic