mirror of
http://git.pig4cloud.com/pig/pigx.git
synced 2026-11-08 04:39:00 +08:00
fix: 修复安全过滤链顺序并清理构建告警
(cherry picked from commit 7dfeb3b7ed6b44b12f72cc82aed92a38e9d39af0)
This commit is contained in:
1 parent
fbb5bd121c
commit
b04588ffae
5 files changed
+11
-4
No files matched your search
@@ -7,7 +7,7 @@
|
||||
<groupId>com.pig4cloud</groupId>
|
||||
<artifactId>pigx-common-bom</artifactId>
|
||||
<packaging>pom</packaging>
|
||||
<version>${pigx.version}</version>
|
||||
<version>6.2.0</version>
|
||||
<description>pigx 公共版本控制,在此pom定义的依赖,全局业务微服务不需要指定版本。</description>
|
||||
|
||||
<properties>
|
||||
|
||||
+1
-1
@@ -56,7 +56,7 @@ public class PigxResourceServerConfiguration {
|
||||
private final PigxBootCorsProperties corsProperties;
|
||||
|
||||
@Bean
|
||||
@Order(Ordered.HIGHEST_PRECEDENCE)
|
||||
@Order(Ordered.HIGHEST_PRECEDENCE + 1)
|
||||
SecurityFilterChain securityFilterChain(HttpSecurity http) throws Exception {
|
||||
PathPatternRequestMatcher[] permitMatchers = permitAllUrl.getIgnoreUrls()
|
||||
.stream()
|
||||
|
||||
+2
-2
@@ -22,7 +22,6 @@ import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import lombok.Getter;
|
||||
import org.springframework.security.authentication.dao.DaoAuthenticationProvider;
|
||||
import org.springframework.security.core.GrantedAuthority;
|
||||
import org.springframework.security.core.SpringSecurityCoreVersion;
|
||||
import org.springframework.security.core.userdetails.User;
|
||||
import org.springframework.security.oauth2.core.OAuth2AuthenticatedPrincipal;
|
||||
|
||||
@@ -40,7 +39,8 @@ import java.util.Map;
|
||||
public class PigxUser extends User implements OAuth2AuthenticatedPrincipal {
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = SpringSecurityCoreVersion.SERIAL_VERSION_UID;
|
||||
// 保留原序列化版本,兼容已有授权缓存。
|
||||
private static final long serialVersionUID = 620L;
|
||||
|
||||
/**
|
||||
* 扩展属性,方便存放oauth 上下文相关信息
|
||||
|
||||
@@ -74,6 +74,7 @@ public class UserVo {
|
||||
* 用户的处理状态:0-待处理,1-处理中,2-已完成。默认为0
|
||||
* </p>
|
||||
*/
|
||||
@Builder.Default
|
||||
private Integer status = 0;
|
||||
|
||||
}
|
||||
@@ -42,6 +42,7 @@
|
||||
<maven.compiler.target>17</maven.compiler.target>
|
||||
<spring-boot-admin.version>4.1.2</spring-boot-admin.version>
|
||||
<maven.compiler.version>3.14.1</maven.compiler.version>
|
||||
<maven-deploy-plugin.version>3.1.4</maven-deploy-plugin.version>
|
||||
<spring.checkstyle.version>0.0.47</spring.checkstyle.version>
|
||||
<git.commit.version>10.0.1</git.commit.version>
|
||||
<cas.sdk.version>3.6.4</cas.sdk.version>
|
||||
@@ -186,6 +187,11 @@
|
||||
</resources>
|
||||
<pluginManagement>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-deploy-plugin</artifactId>
|
||||
<version>${maven-deploy-plugin.version}</version>
|
||||
</plugin>
|
||||
<!--spring boot 默认插件-->
|
||||
<plugin>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
|
||||
Reference in new issue
Block a user