java - Configure targetUrlParameter when using Spring Sso Client -


i'm looking way redirect custom url after finish oauth2 login.

after debug application, identify class savedrequestawareauthenticationsuccesshandler redirect according parameters, , org.springframework.boot.autoconfigure.security.oauth2.client.ssosecurityconfigurer create , configure oauth2clientauthenticationprocessingfilter has successhandler instance.

how can configure handler?

my configuration class:

@configuration @enableoauth2sso public class authclientconfiguration extends websecurityconfigureradapter {     @override     public void configure(websecurity web) throws exception {         web.ignoring()             .antmatchers(httpmethod.options, "/**")             .antmatchers("/app/**/*.{js,html}")             .antmatchers("/i18n/**")             .antmatchers("/content/**")             .antmatchers("/static/**")             .antmatchers("/test/**")             .antmatchers("/h2-console/**");     }      @override     public void configure(httpsecurity http) throws exception {         // @formatter:off         http             .csrf().disable()             .logout().and()             .authorizerequests()                 .antmatchers("/index.html", "/home.html", "/", "/login", "/static/**").permitall()                 .anyrequest().authenticated();             // @formatter:on     } } 


Comments

Popular posts from this blog

neo4j - finding mutual friends in a cypher statement starting with three or more persons -

php - How to remove letter in front of the word laravel -

minify - Minimizing css files -