Quantcast

Acegi issue - filterProcessesUrl is null

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Acegi issue - filterProcessesUrl is null

Chetan Uberoy

Hi

 

We are seeing a weird intermittent problem where the filterProcessesUrl from SecurityConfig is set to [:] This causes the login page to set our form post action to webapp/[:] rather than webapp/j_spring_security_check. I have not defined filterProcessesUrl in SecurityConfig so am assuming it would take the default of /j_spring_security_check

 

I have created my own AuthenticationProvider and set it in SecurityConfig.groovy as follows:

 

    providerNames = ['mphrxAuthenticationProvider', 'anonymousAuthenticationProvider', 'rememberMeAuthenticationProvider']

 

    filterInvocationDefinitionSourceMap = [

            '/api/**': 'httpSessionContextIntegrationFilter,logoutFilter,authenticationProcessingFilter,securityContextHolderAwareRequestFilter,rememberMeProcessingFilter,mobileAppFilter,anonymousProcessingFilter,mobileExceptionTranslationFilter,filterInvocationInterceptor',

            '/**': 'JOINED_FILTERS',

    ]

 

I am also attaching my spring/resources.groovy which has some beans settings for MphrxAuthenticationProvider and the mobileAppFilter

 

Any help would be appreciated!

 

Best Regards

 

Chetan Uberoy

 



---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email

resources.groovy (3K) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

RE: Acegi issue - filterProcessesUrl is null

Chetan Uberoy

Hi, can anybody help me – I just found out that even other variables defined in SecurityConfig.groovy are not accessible in this situation. It seems to be somehow related to tomcat restart – if we delete the exploded war directory and then restart, the acegi configurations are loading up fine..

 

Best Regards

 

Chetan Uberoy

Country Head, India

MphRx

+919810930859

Saving Lives Through Technology

 

From: Chetan Uberoy [mailto:[hidden email]]
Sent: Friday, June 15, 2012 6:33 PM
To: '[hidden email]'
Subject: [grails-user] Acegi issue - filterProcessesUrl is null

 

Hi

 

We are seeing a weird intermittent problem where the filterProcessesUrl from SecurityConfig is set to [:] This causes the login page to set our form post action to webapp/[:] rather than webapp/j_spring_security_check. I have not defined filterProcessesUrl in SecurityConfig so am assuming it would take the default of /j_spring_security_check

 

I have created my own AuthenticationProvider and set it in SecurityConfig.groovy as follows:

 

    providerNames = ['mphrxAuthenticationProvider', 'anonymousAuthenticationProvider', 'rememberMeAuthenticationProvider']

 

    filterInvocationDefinitionSourceMap = [

            '/api/**': 'httpSessionContextIntegrationFilter,logoutFilter,authenticationProcessingFilter,securityContextHolderAwareRequestFilter,rememberMeProcessingFilter,mobileAppFilter,anonymousProcessingFilter,mobileExceptionTranslationFilter,filterInvocationInterceptor',

            '/**': 'JOINED_FILTERS',

    ]

 

I am also attaching my spring/resources.groovy which has some beans settings for MphrxAuthenticationProvider and the mobileAppFilter

 

Any help would be appreciated!

 

Best Regards

 

Chetan Uberoy

 

Loading...