config相关配置。

This commit is contained in:
Renpc-kilig 2021-01-21 17:25:46 +08:00
parent d96f205eda
commit 133ce514b5

View File

@ -35,12 +35,13 @@ public class AuthClientSecurityConfig extends WebSecurityConfigurerAdapter {
@Override @Override
protected void configure(HttpSecurity http) throws Exception { protected void configure(HttpSecurity http) throws Exception {
http.formLogin() http
.formLogin()
.defaultSuccessUrl("/authorize", true) .defaultSuccessUrl("/authorize", true)
.and() .and()
.logout().logoutSuccessUrl(authServer.getOauthLogout()) .logout().logoutSuccessUrl(authServer.getOauthLogout())
.and() .and()
.authorizeRequests().antMatchers("/app/**", "/route/file/**", "/assets/**","/resource/**").permitAll() .authorizeRequests().antMatchers("/app/**","/resource/**", "/route/file/**", "/assets/**").permitAll()
.and() .and()
.authorizeRequests() .authorizeRequests()
.anyRequest() .anyRequest()