Skip to content

Commit

Permalink
Add repo:push to API token scopes to allow push from cloned reposit…
Browse files Browse the repository at this point in the history
…ories
  • Loading branch information
hamishcampbell authored Oct 25, 2024
1 parent 1e0e192 commit 79d77bc
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions koordinates/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 79d77bc

Please sign in to comment.