Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
datax-cloud
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
黄营
datax-cloud
Commits
65b264b5
Commit
65b264b5
authored
Nov 12, 2019
by
yw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
项目初始化
parent
2d3e43ac
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
DataResourceServerConfig.java
...n/java/cn/datax/auth/config/DataResourceServerConfig.java
+7
-0
DataWebSecurityConfigurer.java
.../java/cn/datax/auth/config/DataWebSecurityConfigurer.java
+0
-7
No files found.
datax-auth/src/main/java/cn/datax/auth/config/DataResourceServerConfig.java
View file @
65b264b5
...
...
@@ -33,6 +33,13 @@ public class DataResourceServerConfig extends ResourceServerConfigurerAdapter {
public
void
configure
(
HttpSecurity
http
)
throws
Exception
{
http
.
csrf
().
disable
()
.
authorizeRequests
()
.
antMatchers
(
"/actuator/**"
,
"/v2/api-docs/**"
,
"/swagger-ui.html"
,
"/doc.html"
,
"/swagger-resources/**"
,
"/webjars/**"
).
permitAll
()
.
anyRequest
().
permitAll
()
.
and
().
httpBasic
();
}
...
...
datax-auth/src/main/java/cn/datax/auth/config/DataWebSecurityConfigurer.java
View file @
65b264b5
...
...
@@ -27,13 +27,6 @@ public class DataWebSecurityConfigurer extends WebSecurityConfigurerAdapter {
protected
void
configure
(
HttpSecurity
http
)
throws
Exception
{
http
.
authorizeRequests
()
.
antMatchers
(
"/actuator/**"
,
"/v2/api-docs/**"
,
"/swagger-ui.html"
,
"/doc.html"
,
"/swagger-resources/**"
,
"/webjars/**"
).
permitAll
()
.
anyRequest
().
authenticated
()
.
and
().
csrf
().
disable
();
}
...
...
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