mirror of https://github.com/usbharu/Hideout.git
feat: http-signatureのSpring Securityを使用した認証をpostのみに変更
This commit is contained in:
parent
820364813f
commit
631acc534e
|
@ -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)),
|
||||
|
|
Loading…
Reference in New Issue