The Spring Social SocialAuthenticationFilter
processes the url /auth
. How can I change this url?
There is a method SocialAuthenticationFilter.setFilterProcessesUrl(String filterProcessesUrl)
. How can I access the SocialAuthenticationFilter
object to use this method? (I use SpringSocialConfigurer
, which automatically adds SocialAuthenticationFilter
to the chain.)
Unfortunately using the original SpringSocialConfigurer
you can't set the processed url. Looking at the code, you may "only" fluently configure things like postLoginUrl
, postFailureUrl
, signupUrl
, connectionAddedRedirectUrl
, defaultFailureUrl
and alwaysUsePostLoginUrl
.
Imho that's an omission in SpringSocialConfigurer
and you may want to file an issue at https://github.com/spring-projects/spring-social/issues.
For the time being, just use the code from SpringSocialConfigurer
and come up with your own (small) class.