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 { ): SecurityFilterChain {
val builder = MvcRequestMatcher.Builder(introspector) val builder = MvcRequestMatcher.Builder(introspector)
http http
.securityMatcher("/inbox", "/outbox", "/users/*/inbox", "/users/*/outbox", "/users/*/posts/*") .securityMatcher("/users/*/posts/*")
.addFilter(httpSignatureFilter) .addFilter(httpSignatureFilter)
.addFilterBefore( .addFilterBefore(
ExceptionTranslationFilter(HttpStatusEntryPoint(HttpStatus.UNAUTHORIZED)), ExceptionTranslationFilter(HttpStatusEntryPoint(HttpStatus.UNAUTHORIZED)),