|
View:
New views
2 Messages
—
Rating Filter:
Alert me
|
|
|
Problems when trying to use Acegi with Wicket application
by lubosp
::
Rate this Message:
Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message Hi,
I am trying to port my application that uses Acegi Spring security to Wicket framework, I have the application working with Wicket, but when I try to add Acegi support as documented at: http://cwiki.apache.org/WICKET/acegi-and-wicket-auth-roles.html, I have problem to use MyAppSignIn.html page. I define the login page in Acegi configuration in authentication filter entry point like: <bean id="exceptionTranslationFilter" class="org.acegisecurity.ui.ExceptionTranslationFilter"> <property name="authenticationEntryPoint"> <bean class="org.acegisecurity.ui.webapp.AuthenticationProcessingFilterEntryPoint"> <property name="loginFormUrl" value="/app/MyAppSignIn.html"/> <property name="forceHttps" value="false"/> </bean> </property> <property name="accessDeniedHandler"> <bean class="org.acegisecurity.ui.AccessDeniedHandlerImpl"> <property name="errorPage" value="/app/MyAppSignIn.html"/> </bean> </property> </bean> And I also set: <bean id="filterInvocationInterceptor" class="org.acegisecurity.intercept.web.FilterSecurityInterceptor"> <property name="objectDefinitionSource"> <value> CONVERT_URL_TO_LOWERCASE_BEFORE_COMPARISON PATTERN_TYPE_APACHE_ANT /app/myappsignin.html=IS_AUTHENTICATED_ANONYMOUSLY Tomcat tries to open /app/MyAppSignIn.html if I reference http://localhost:8080/myapp/app, but it cannot find it. My question is, how do I configure Acegi so it uses Wicket MyAppSignIn page (same as YourAppSignIn extends WebPage from http://cwiki.apache.org/WICKET/acegi-and-wicket-auth-roles.html0. Thanks, Lubos |
|
|
Re: Problems when trying to use Acegi with Wicket application
by Luke Taylor
::
Rate this Message:
Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message lubosp wrote: > > Tomcat tries to open /app/MyAppSignIn.html if I reference > http://localhost:8080/myapp/app, but it cannot find it. > I'm pretty new to wicket (though very familiar with Acegi) but I'm guessing you'd have to mount the login page as a bookmarkable URL in your wicket app if you want to use it from Acegi. > My question is, how do I configure Acegi so it uses Wicket MyAppSignIn page > (same as YourAppSignIn extends WebPage from > http://cwiki.apache.org/WICKET/acegi-and-wicket-auth-roles.html0. > > Thanks, Lubos -- Luke Taylor. Monkey Machine Ltd. PGP Key ID: 0x57E9523C http://www.monkeymachine.ltd.uk ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ IMPORTANT NOTICE: This mailing list is shutting down. Please subscribe to the Apache Wicket user list. Send a message to: "users-subscribe at wicket.apache.org" and follow the instructions. _______________________________________________ Wicket-user mailing list Wicket-user@... https://lists.sourceforge.net/lists/listinfo/wicket-user |
| Free embeddable forum powered by Nabble | Forum Help |