Commit 8b0a2a92 by PWF-WK01\pengwufeng

权限控制

parent 97771037
...@@ -240,9 +240,11 @@ public class SecurityConfig { ...@@ -240,9 +240,11 @@ public class SecurityConfig {
http.sessionManagement().maximumSessions(1); http.sessionManagement().maximumSessions(1);
http.csrf().disable(); http.csrf().disable();
http.cors().disable(); http.cors().disable();
http.antMatcher("/warehouse/**").authorizeRequests().anyRequest().authenticated(); http.antMatcher("/warehouse/**").authorizeRequests()
http.exceptionHandling().authenticationEntryPoint(authenticationEntryPoint); .antMatchers("/warehouse/user").permitAll()
.anyRequest().authenticated();
http.exceptionHandling().authenticationEntryPoint(authenticationEntryPoint);
InzConcurrentSessionFilter inzConcurrentSessionFilter = new InzConcurrentSessionFilter(sessionRegistry) ; InzConcurrentSessionFilter inzConcurrentSessionFilter = new InzConcurrentSessionFilter(sessionRegistry) ;
http.addFilterAt(inzConcurrentSessionFilter, ConcurrentSessionFilter.class); http.addFilterAt(inzConcurrentSessionFilter, ConcurrentSessionFilter.class);
...@@ -312,7 +314,6 @@ public class SecurityConfig { ...@@ -312,7 +314,6 @@ public class SecurityConfig {
.antMatchers("/crm/load/publicity/byAssetPackage/**").permitAll() .antMatchers("/crm/load/publicity/byAssetPackage/**").permitAll()
.antMatchers("/workflow/api/**").permitAll() .antMatchers("/workflow/api/**").permitAll()
.antMatchers("/dnaserver/**").permitAll() .antMatchers("/dnaserver/**").permitAll()
.antMatchers("/warehouseuser/**").permitAll()
.anyRequest().authenticated();//listAll,modifySelfPassword,loadAuctionByAsset临时开放 .anyRequest().authenticated();//listAll,modifySelfPassword,loadAuctionByAsset临时开放
http.exceptionHandling().authenticationEntryPoint(authenticationEntryPoint); http.exceptionHandling().authenticationEntryPoint(authenticationEntryPoint);
InzWebAuthenticationFilter filter = new InzWebAuthenticationFilter(); InzWebAuthenticationFilter filter = new InzWebAuthenticationFilter();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment