fix: add locations.readonly scope to OAuth install request
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
The /locations/search endpoint requires locations.readonly scope. Without it the company token gets 401 when trying to list locations during bulk install, blocking the per-location token exchange. Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
parent
dfbc40e201
commit
3d1e80cd86
@ -62,6 +62,7 @@ func (h *OAuthHandler) HandleInstall(w http.ResponseWriter, r *http.Request) {
|
|||||||
"conversations.readonly",
|
"conversations.readonly",
|
||||||
"contacts.readonly",
|
"contacts.readonly",
|
||||||
"contacts.write",
|
"contacts.write",
|
||||||
|
"locations.readonly",
|
||||||
}, " ")
|
}, " ")
|
||||||
|
|
||||||
authURL := fmt.Sprintf(
|
authURL := fmt.Sprintf(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user