Sure, you can do this, as long as the form parameter names are the same (username, password, rememberMe). You just need to specify that the two different pages are filtered by the authc controller:
[urls] /login.jsp = authc /anotherLoginPage.jsp = authc However, the authc controller only accepts a single login page for configuration: [main] authc.loginUrl = /login.jsp So if they're unauthenticated, that will be the page they're redirected to for login. If this doesn't meet your needs, you can also configure two of the FormAuthenticationFilters: [main] # use the default one authc.whatever = whatever # add and configure a 2nd FormAuthenticationController instance for other needs: authc2 = org.apache.shiro.web.filter.authc.FormAuthenticationFilter ... [urls] /login.jsp = authc /login2.jsp = authc2 The default filters automatically available in the [main] section are just some beans provided by default - you can configure as many as you like, like any other object. HTH, -- Les Hazlewood CTO, Katasoft | http://www.katasoft.com | 888.391.5282 twitter: @lhazlewood | http://twitter.com/lhazlewood katasoft blog: http://www.katasoft.com/blogs/lhazlewood personal blog: http://leshazlewood.com On Wed, Feb 1, 2012 at 4:58 AM, Chris Richmond <[email protected]> wrote: > Can you have muliple login forms with shiro authc? > > We have a landing page with a little dialog box for login in in the top > right if they go the the top unsecured level page, but if they attempt to go > to a secured lower directory, it redirects to a dedicated login.jsp page. > > Can I specify that the login page in that landing page should also provide > log in support. > > Thanks
