Skip to content

Commit

Permalink
Merge pull request #314 from koordinates/hc-update-token-scopes
Browse files Browse the repository at this point in the history
Update token scopes to allow Repo Push
  • Loading branch information
hamishcampbell authored Oct 25, 2024
2 parents 1e0e192 + 79d77bc commit 1eea807
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 1eea807

Please sign in to comment.