Commit 30c1ca9b by jianan

auth服务文档

parent 12e6811f
...@@ -74,7 +74,8 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter { ...@@ -74,7 +74,8 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter {
"/favicon.ico", "/favicon.ico",
"/user/api/v3/api-docs", "/user/api/v3/api-docs",
"/insurance/base/api/v3/api-docs", "/insurance/base/api/v3/api-docs",
"/csf/api/v3/api-docs" "/csf/api/v3/api-docs",
"/auth/v3/api-docs"
).permitAll() ).permitAll()
.anyRequest().authenticated() .anyRequest().authenticated()
.and() .and()
......
...@@ -36,7 +36,8 @@ public class GatewayJwtAuthFilterConfig { ...@@ -36,7 +36,8 @@ public class GatewayJwtAuthFilterConfig {
"/favicon.ico", "/favicon.ico",
"/user/api/v3/api-docs/**", "/user/api/v3/api-docs/**",
"/insurance/base/api/v3/api-docs/**", "/insurance/base/api/v3/api-docs/**",
"/csf/api/v3/api-docs/**" "/csf/api/v3/api-docs/**",
"/auth/v3/api-docs/**"
}; };
/** /**
......
...@@ -21,7 +21,7 @@ public class Knife4jExcludeService implements GatewayServiceExcludeService { ...@@ -21,7 +21,7 @@ public class Knife4jExcludeService implements GatewayServiceExcludeService {
if (!CollectionUtils.isEmpty(services)){ if (!CollectionUtils.isEmpty(services)){
// 排除注册中心包含 auth字眼的服务 // 排除注册中心包含 auth字眼的服务
return services.stream() return services.stream()
.filter(s -> s.contains("auth") || s.contains("oss")) .filter(s -> s.contains("oss"))
.collect(Collectors.toSet()); .collect(Collectors.toSet());
} }
return new TreeSet<>(); return new TreeSet<>();
......
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