fix: add locations.readonly scope to OAuth install request
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:
Head of Product & Engineering 2026-04-06 10:17:45 +02:00
parent dfbc40e201
commit 3d1e80cd86

View File

@ -62,6 +62,7 @@ func (h *OAuthHandler) HandleInstall(w http.ResponseWriter, r *http.Request) {
"conversations.readonly",
"contacts.readonly",
"contacts.write",
"locations.readonly",
}, " ")
authURL := fmt.Sprintf(