feat: http-signatureのSpring Securityを使用した認証をpostのみに変更

This commit is contained in:
usbharu 2023-11-28 13:34:21 +09:00
parent 820364813f
commit 631acc534e
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@ class SecurityConfig {
): SecurityFilterChain {
val builder = MvcRequestMatcher.Builder(introspector)
http
.securityMatcher("/inbox", "/outbox", "/users/*/inbox", "/users/*/outbox", "/users/*/posts/*")
.securityMatcher("/users/*/posts/*")
.addFilter(httpSignatureFilter)
.addFilterBefore(
ExceptionTranslationFilter(HttpStatusEntryPoint(HttpStatus.UNAUTHORIZED)),