mirror of
https://github.com/TheWhiteDog9487/WebAPI.git
synced 2026-08-11 23:01:30 +08:00
让/accesslog必须经过鉴权才能使用
This commit is contained in:
+1
-1
@@ -7,7 +7,7 @@ plugins {
|
|||||||
}
|
}
|
||||||
|
|
||||||
group = "xyz.thewhitedog9487"
|
group = "xyz.thewhitedog9487"
|
||||||
version = "0.6.1"
|
version = "0.7.0"
|
||||||
|
|
||||||
java {
|
java {
|
||||||
toolchain {
|
toolchain {
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ class OpenAPIConfiguration {
|
|||||||
.contact(new Contact()
|
.contact(new Contact()
|
||||||
.name("TheWhiteDog9487")
|
.name("TheWhiteDog9487")
|
||||||
.url("https://www.github.com/TheWhiteDog9487/WebAPI"))
|
.url("https://www.github.com/TheWhiteDog9487/WebAPI"))
|
||||||
.version("0.6.1")
|
.version("0.7.0")
|
||||||
.license(new License()
|
.license(new License()
|
||||||
.name("WTFPL")
|
.name("WTFPL")
|
||||||
.url("https://spdx.org/licenses/WTFPL")) )
|
.url("https://spdx.org/licenses/WTFPL")) )
|
||||||
|
|||||||
+1
-1
@@ -27,7 +27,7 @@ class SpringSecurityConfiguration {
|
|||||||
.permitAll()
|
.permitAll()
|
||||||
.requestMatchers("/", "/v3/api-docs/**","swagger-ui/**", "/swagger-ui.html")
|
.requestMatchers("/", "/v3/api-docs/**","swagger-ui/**", "/swagger-ui.html")
|
||||||
.permitAll()
|
.permitAll()
|
||||||
.requestMatchers("/message/**")
|
.requestMatchers("/message/**", "/accesslog/**")
|
||||||
.authenticated()
|
.authenticated()
|
||||||
.anyRequest()
|
.anyRequest()
|
||||||
.denyAll(); })
|
.denyAll(); })
|
||||||
|
|||||||
Reference in New Issue
Block a user