I'm working on a IMAP Webmail portlet using spring. Since I need to
allow for user authentication with the IMAP server using credentials collected
from the user. I thought I could do it by having two default 'view' controllers.
The default one controlled by a authenticated interceptor with the idea that
if I wasn't authenticated, the second view would get the control.
After a lot of tearing my hair out I finally realized that spring doesn't allowCode:<bean id="authenticatedPortletModeHandlerMapping" class="org.springframework.web.portlet.handler.PortletModeHandlerMapping"> <property name="order" value="3" /> <property name="interceptors"> <list> <ref bean="authenticatedInterceptor" /> </list> </property> <property name="portletModeMap"> <map> <entry key="view"> <ref bean="summaryController" /> </entry> </map> </property> </bean> <bean id="authenticateModeHandlerMapping" class="org.springframework.web.portlet.handler.PortletModeHandlerMapping"> <property name="portletModeMap"> <map> <entry key="view"> <ref bean="authenticationController" /> </entry> </map> </property> </bean>
me to do this in this way since it will only match against one view with no
'action' parameter.
Any suggestions/examples on how I can do authentication?
Thanks
George


Reply With Quote