Re: Ponder - How does the login page redirect to the next page?
Ramsey Gurley <[email protected]>
| Newsgroups | gmane.comp.web.webobjects.wonder-disc |
|---|---|
| Message-ID | <[email protected]> |
That is handled by er.users.delegates.AuthenticationDelegate.successPage method. In the er.users.ERUsers.finishInitialization, you'll see ERTwoFactorAuthenticationDelegate delegate = new AuthenticationDelegate(); ERTwoFactorAuthenticationConfig config = new AuthConfig( ERUser.ENTITY_NAME, ERUser.USERNAME_KEY, ERUser.CLEAR_PASSWORD_KEY, ERUser.PASSWORD_KEY, delegate); ERTwoFactorAuthenticationRequest.clazz.setAuthenticationConfig(config); So, if you want to provide a custom delegate, you can do that same thing your your app's finishInitialization() method to replace it with a custom delegate instead. I believe the app's finishInitialization() method is called after all the frameworks' finishInitialization() methods. Ramsey On Dec 13, 2012, at 9:10 AM, James Cicenia wrote: > I still can't seem to find where you set the loginSuccessPage or where I should intercept. > > Depending on user's role, I wanted a separate login page. Where would the best place put this? > Or where are you doing it yourself? > > Thanks > > > On Dec 10, 2012, at 9:47 AM, Ramsey Gurley <[email protected]> wrote: > >> The login logic is handled in the ERTwoFactorAuthenticationProcessor.authenticate() method. >> >> On Dec 10, 2012, at 6:58 AM, James Cicenia wrote: >> >>> No, I think that is correct (stateless). >>> >>> So then, where do you put your logic for logging in? Do I subclass your login direct action and then instantiate a new D2W inspect page? >>> >>> I will have to look at your cid handling. Don't think I ever used those before. >>> >>> James >>> >>> >>> >>> On Dec 9, 2012, at 11:24 PM, Ramsey Gurley <[email protected]> wrote: >>> >>>> Since the login component is a stateless direct action component, it passes cid (context id) and lcid (last context id). The cid is the page before and the lcid is the page you originated from. >>>> >>>> I probably should have just made it a d2w component and used a page controller and component actions, but I'm a glutton for punishment sometimes. I had it in my head that someone might actually want to use that component outside of a D2W app and therefore would want a direct action login form to prevent instantiating a session. >>>> >>>> >>>> On Dec 9, 2012, at 8:19 PM, James Cicenia wrote: >>>> >>>>> How does the login page redirect to the next page? >>>>> >>>>> The loginAction in ERAuthDirectAction has me a bit confused. >>>>> I looked through the rules and see nothing that stands out in there about redirecting. >>>>> >>>>> Currently, because of whatever reason, when I try to login I get: >>>>> >>>>> <html><head><title>Error</title></head><body>Your request produced an error.</body></html> >>>>> >>>>> However, I don't see an error in the console. >>>>> >>>>> Thanks >>>>> James >>>>> ------------------------------------------------------------------------------ >>>>> LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial >>>>> Remotely access PCs and mobile devices and provide instant support >>>>> Improve your efficiency, and focus on delivering more value-add services >>>>> Discover what IT Professionals Know. Rescue delivers >>>>> http://p.sf.net/sfu/logmein_12329d2d_______________________________________________ >>>>> Wonder-disc mailing list >>>>> [email protected] >>>>> https://lists.sourceforge.net/lists/listinfo/wonder-disc >>>> >>> >> > > ------------------------------------------------------------------------------ > LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial > Remotely access PCs and mobile devices and provide instant support > Improve your efficiency, and focus on delivering more value-add services > Discover what IT Professionals Know. Rescue delivers > http://p.sf.net/sfu/logmein_12329d2d_______________________________________________ > Wonder-disc mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/wonder-disc ------------------------------------------------------------------------------ LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial Remotely access PCs and mobile devices and provide instant support Improve your efficiency, and focus on delivering more value-add services Discover what IT Professionals Know. Rescue delivers http://p.sf.net/sfu/logmein_12329d2d