mirror of https://github.com/usbharu/Hideout.git
fix: OAuth2のスコープを修正
This commit is contained in:
parent
a89a560742
commit
7edca4a213
|
@ -193,8 +193,10 @@ class SecurityConfig {
|
|||
authorize(GET, "/users/*/header.jpg", permitAll)
|
||||
|
||||
authorize(GET, "/api/v1/accounts/verify_credentials", hasAnyScope("read", "read:accounts"))
|
||||
authorize(GET, "/api/v1/accounts/relationships", hasAnyScope("read", "read:follows"))
|
||||
authorize(GET, "/api/v1/accounts/*", permitAll)
|
||||
authorize(GET, "/api/v1/accounts/*/statuses", permitAll)
|
||||
authorize(POST, "/api/v1/accounts/*/follow", hasAnyScope("write", "write:follows"))
|
||||
|
||||
authorize(POST, "/api/v1/media", hasAnyScope("write", "write:media"))
|
||||
authorize(POST, "/api/v1/statuses", hasAnyScope("write", "write:statuses"))
|
||||
|
|
Loading…
Reference in New Issue