如何在Spring Boot Oauth2中将默认登录路径从/ login更改为/ auth / login?clientId = 123&secret = 123

需要将默认的oauth2身份验证服务器/ login页面自定义为用户定义页面以及传递查询参数

我尝试使用此链接https://www.javainuse.com/spring/boot_form_security_custom_login

protected void configure(HttpSecurity http) throws Exception {

        http.requestMatchers()
                .antMatchers("/login","/oauth/authorize")
                .and()
                .authorizeRequests()
                .anyRequest()
                .authenticated()
                .and()                
                .formLogin()
                .permitAll();


    }
SH780114 回答:如何在Spring Boot Oauth2中将默认登录路径从/ login更改为/ auth / login?clientId = 123&secret = 123

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/3153095.html

大家都在问