mirror of
https://github.com/usbharu/Hideout.git
synced 2026-09-26 15:01:09 +00:00
fix: メディアアップロードのスコープの設定を修正
This commit is contained in:
@@ -190,6 +190,8 @@ class SecurityConfig {
|
||||
it.requestMatchers(builder.pattern("/change-password")).authenticated()
|
||||
it.requestMatchers(builder.pattern("/api/v1/accounts/verify_credentials"))
|
||||
.hasAnyAuthority("SCOPE_read", "SCOPE_read:accounts")
|
||||
it.requestMatchers(builder.pattern(HttpMethod.POST, "/api/v1/media"))
|
||||
.hasAnyAuthority("SCOPE_write", "SCOPE_write:media")
|
||||
it.anyRequest().permitAll()
|
||||
}
|
||||
http.oauth2ResourceServer {
|
||||
|
||||
Reference in New Issue
Block a user