From 133ce514b502a301e857ed38bca57f4eed416733 Mon Sep 17 00:00:00 2001 From: Renpc-kilig <308442850@qq.com> Date: Thu, 21 Jan 2021 17:25:46 +0800 Subject: [PATCH] =?UTF-8?q?config=E7=9B=B8=E5=85=B3=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../config/AuthClientSecurityConfig.java | 33 ++++++++++--------- 1 file changed, 17 insertions(+), 16 deletions(-) diff --git a/src/main/java/com/cm/partybuilding/config/AuthClientSecurityConfig.java b/src/main/java/com/cm/partybuilding/config/AuthClientSecurityConfig.java index 4d0c342..4204487 100644 --- a/src/main/java/com/cm/partybuilding/config/AuthClientSecurityConfig.java +++ b/src/main/java/com/cm/partybuilding/config/AuthClientSecurityConfig.java @@ -35,22 +35,23 @@ public class AuthClientSecurityConfig extends WebSecurityConfigurerAdapter { @Override protected void configure(HttpSecurity http) throws Exception { - http.formLogin() - .defaultSuccessUrl("/authorize", true) - .and() - .logout().logoutSuccessUrl(authServer.getOauthLogout()) - .and() - .authorizeRequests().antMatchers("/app/**", "/route/file/**", "/assets/**","/resource/**").permitAll() - .and() - .authorizeRequests() - .anyRequest() - .access("@clientRbacService.hasPermission(request, authentication)") - .and() - .headers().frameOptions().sameOrigin() - .and() - .cors() - .and() - .csrf().disable(); + http + .formLogin() + .defaultSuccessUrl("/authorize", true) + .and() + .logout().logoutSuccessUrl(authServer.getOauthLogout()) + .and() + .authorizeRequests().antMatchers("/app/**","/resource/**", "/route/file/**", "/assets/**").permitAll() + .and() + .authorizeRequests() + .anyRequest() + .access("@clientRbacService.hasPermission(request, authentication)") + .and() + .headers().frameOptions().sameOrigin() + .and() + .cors() + .and() + .csrf().disable(); } @Bean