hello, I am trying to modify the appfuse security.xml file just to try out some things...
I have managed to get a simple inmemorydao impl working....in the default URL path I am routing it to a login action class (new request)....I need access to the users details.....Using getSecurityContext() and the isUserInRole() aint working in the action class...Any help would be gladly appreciated....My configuration is detailed below: <!-- Authentication config --> <value> CONVERT_URL_TO_LOWERCASE_BEFORE_COMPARISON PATTERN_TYPE_APACHE_ANT /**=authenticationProcessingFilter </value> <!-- Filter config --> <bean id="authenticationProcessingFilter" class="org.acegisecurity.ui.webapp.AuthenticationP rocessingFilter"> <property name="authenticationManager" ref="authenticationManager"/> <property name="authenticationFailureUrl" value="/entryPWMLite.jsp?error=true"/> <property name="defaultTargetUrl" value="/login.action"/> <property name="filterProcessesUrl" value="/j_security_check"/> <!--<property name="rememberMeServices" ref="rememberMeServices"/>--> </bean> <!-- Spring Beans config --> <bean id="authenticationManager" class="org.acegisecurity.providers.ProviderManager "> <property name="providers"> <list> <ref local="daoAuthenticationProvider"/> </list> </property> </bean> <bean id="inMemoryDaoImpl" class="org.acegisecurity.userdetails.memory.InMemo ryDaoImpl"> <property name="userMap"> <value> VGUPTA=VGUPTA,RM ADONGRE=ADONGRE,CUST </value> </property> </bean> My action class code: SecurityContext ctx = SecurityContextHolder.getContext(); (This is null) System.out.println("GETTING THE SECURITY CONTEXT"+ctx); Authentication auth = ctx.getAuthentication(); if(getRequest().isUserInRole("RM")) System.out.println("ACEGI CONFIGURATION SETUP IS COMPLETE"); else if(getRequest().isUserInRole("RM")) System.out.println("ACEGI CONFIGURATION SETUP...PLS WORK"); -- View this message in context: http://www.nabble.com/ACEGI-%2B-STRUTS-2-%2B-Appfuse-tf3547815s2369.html#a9903983 Sent from the AppFuse - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]