From 79d77bc390250537d643a721ad7b120e3d56b133 Mon Sep 17 00:00:00 2001 From: Hamish Campbell Date: Fri, 25 Oct 2024 16:32:03 +1300 Subject: [PATCH] Add `repo:push` to API token scopes to allow push from cloned repositories --- koordinates/auth.py | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/koordinates/auth.py b/koordinates/auth.py index 8a1b0ce..af91349 100644 --- a/koordinates/auth.py +++ b/koordinates/auth.py @@ -66,10 +66,21 @@ REDIRECT_PORT = 8989 REDIRECT_URL = f"http://127.0.0.1:{REDIRECT_PORT}/" SCOPE = "read" -SCOPE_KX = ( - "query tiles catalog users:read sets:read layers:read repos:read viewers:read" - " viewers:write wxs:wfs exports:write notifications:read" -) +SCOPE_KX = " ".join([ + "query", + "tiles", + "catalog", + "users:read", + "sets:read", + "layers:read", + "repos:read", + "repos:push", + "viewers:read", + "viewers:write", + "wxs:wfs", + "exports:write", + "notifications:read", +]) class AuthState(Enum):