Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cloud-fb
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王衍超
cloud-fb
Commits
8b0a2a92
Commit
8b0a2a92
authored
Mar 18, 2021
by
PWF-WK01\pengwufeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
权限控制
parent
97771037
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
SecurityConfig.java
...war/src/main/java/com/beecode/inz/war/SecurityConfig.java
+4
-3
No files found.
backend/build.war/src/main/java/com/beecode/inz/war/SecurityConfig.java
View file @
8b0a2a92
...
...
@@ -240,9 +240,11 @@ public class SecurityConfig {
http
.
sessionManagement
().
maximumSessions
(
1
);
http
.
csrf
().
disable
();
http
.
cors
().
disable
();
http
.
antMatcher
(
"/warehouse/**"
).
authorizeRequests
().
anyRequest
().
authenticated
();
http
.
exceptionHandling
().
authenticationEntryPoint
(
authenticationEntryPoint
);
http
.
antMatcher
(
"/warehouse/**"
).
authorizeRequests
()
.
antMatchers
(
"/warehouse/user"
).
permitAll
()
.
anyRequest
().
authenticated
();
http
.
exceptionHandling
().
authenticationEntryPoint
(
authenticationEntryPoint
);
InzConcurrentSessionFilter
inzConcurrentSessionFilter
=
new
InzConcurrentSessionFilter
(
sessionRegistry
)
;
http
.
addFilterAt
(
inzConcurrentSessionFilter
,
ConcurrentSessionFilter
.
class
);
...
...
@@ -312,7 +314,6 @@ public class SecurityConfig {
.
antMatchers
(
"/crm/load/publicity/byAssetPackage/**"
).
permitAll
()
.
antMatchers
(
"/workflow/api/**"
).
permitAll
()
.
antMatchers
(
"/dnaserver/**"
).
permitAll
()
.
antMatchers
(
"/warehouseuser/**"
).
permitAll
()
.
anyRequest
().
authenticated
();
//listAll,modifySelfPassword,loadAuctionByAsset临时开放
http
.
exceptionHandling
().
authenticationEntryPoint
(
authenticationEntryPoint
);
InzWebAuthenticationFilter
filter
=
new
InzWebAuthenticationFilter
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment