infoglue login / logout / invalid login logic
astik <[email protected]>
| Newsgroups | gmane.comp.cms.infoglue.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi all, I'm having some issues with handling login logic ... I don't know if I'm doing it well or not =/ I d'ont want my login form to be the default infoglue one, but i want a login form into my website. The url is ViewPage.action?siteNodeId=20 defined into repository properties : loginUrl=ViewPage.action?siteNodeId=20 It works great for login. For logout, i just have to give the returnAddress in url parameter and it works too. Problem is with invalid login. Here is what happen : - user tries to access a protected page - ViewPageFilter forwards to ViewPageAction -ViewPageAction call handleExtranetLogic method which uses getRedirectUrl method - getRedirectUrl method load the url from the authenticationModule and is overload by the repositoryLoginUrl - login form displayed on loginUrl - user submit login form, the form action is : ExtranetLogin! authenticateUser.action ... it uses org.infoglue.deliver.applications.actions.ExtranetLoginAction.class - if user credentials are good, user is redirected to returnAddress, if not invalidLogin is return and webwork redirects user to /deliver/ extranetLoginError.vm I'd prefer to redirect user on my dynamic page instead of the infoglue velocity page. Is there a way to define othere url like logoutUrl, invalidLoginUrl, noAccess into repository settings ? Right now, I'm on my way to re-write ExtranetLoginAction to make it work the way i want to. I would have like to inherit from this class, but it is a final one, so I can't inherit ='( Any idea to make this easier ? __ Romain http://blog.astik.info ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july