Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
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
项目统一框架
amos-boot-biz
Commits
cce9b627
Commit
cce9b627
authored
Nov 30, 2022
by
tianyiming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auth平台迁移到amos-componrt-secruty
parent
7227d0d5
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
2 additions
and
66 deletions
+2
-66
pom.xml
...e/amos-boot-module-biz/amos-boot-module-equip-biz/pom.xml
+1
-11
RemoteSecurityService.java
...com/yeejoin/equipmanage/remote/RemoteSecurityService.java
+1
-1
WebSecurityConfig.java
...uip/src/main/java/com/yeejoin/amos/WebSecurityConfig.java
+0
-27
WebSecurityConfig.java
...jcs/src/main/java/com/yeejoin/amos/WebSecurityConfig.java
+0
-27
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/pom.xml
View file @
cce9b627
...
@@ -53,18 +53,8 @@
...
@@ -53,18 +53,8 @@
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
com.yeejoin
</groupId>
<groupId>
com.yeejoin
</groupId>
<artifactId>
amos-component-
authtoken
</artifactId>
<artifactId>
amos-component-
security
</artifactId>
<version>
1.7.13-SNAPSHOT
</version>
<version>
1.7.13-SNAPSHOT
</version>
<exclusions>
<exclusion>
<groupId>
org.typroject
</groupId>
<artifactId>
*
</artifactId>
</exclusion>
<exclusion>
<groupId>
io.springfox
</groupId>
<artifactId>
*
</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependency>
</dependencies>
</dependencies>
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/remote/RemoteSecurityService.java
View file @
cce9b627
...
@@ -9,7 +9,7 @@ import java.util.concurrent.TimeUnit;
...
@@ -9,7 +9,7 @@ import java.util.concurrent.TimeUnit;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletRequest
;
import
com.yeejoin.amos.component.
authtoken.
robot.AmosRequestContext
;
import
com.yeejoin.amos.component.robot.AmosRequestContext
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.data.redis.core.RedisTemplate
;
import
org.springframework.data.redis.core.RedisTemplate
;
...
...
amos-boot-system-equip/src/main/java/com/yeejoin/amos/WebSecurityConfig.java
deleted
100644 → 0
View file @
7227d0d5
package
com
.
yeejoin
.
amos
;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.security.config.annotation.web.builders.HttpSecurity
;
import
org.springframework.security.config.annotation.web.configuration.EnableWebSecurity
;
import
org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
;
@Configuration
@EnableWebSecurity
public
class
WebSecurityConfig
extends
WebSecurityConfigurerAdapter
{
// 授权
@Override
protected
void
configure
(
HttpSecurity
http
)
throws
Exception
{
http
.
csrf
().
disable
()
.
headers
()
.
frameOptions
()
.
disable
()
.
and
()
.
authorizeRequests
()
.
regexMatchers
(
"^(?!/actuator).*$"
).
permitAll
()
.
regexMatchers
(
"/actuator/health"
).
permitAll
()
.
regexMatchers
(
"/actuator/info"
).
permitAll
()
.
anyRequest
().
authenticated
().
and
()
.
formLogin
();
}
}
amos-boot-system-jcs/src/main/java/com/yeejoin/amos/WebSecurityConfig.java
deleted
100644 → 0
View file @
7227d0d5
package
com
.
yeejoin
.
amos
;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.security.config.annotation.web.builders.HttpSecurity
;
import
org.springframework.security.config.annotation.web.configuration.EnableWebSecurity
;
import
org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
;
@Configuration
@EnableWebSecurity
public
class
WebSecurityConfig
extends
WebSecurityConfigurerAdapter
{
// 授权
@Override
protected
void
configure
(
HttpSecurity
http
)
throws
Exception
{
http
.
csrf
().
disable
()
.
headers
()
.
frameOptions
()
.
disable
()
.
and
()
.
authorizeRequests
()
.
regexMatchers
(
"^(?!/actuator).*$"
).
permitAll
()
.
regexMatchers
(
"/actuator/health"
).
permitAll
()
.
regexMatchers
(
"/actuator/info"
).
permitAll
()
.
anyRequest
().
authenticated
().
and
()
.
formLogin
();
}
}
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