CLI: support multiple redirect URIs per client #29
Labels
No labels
bug
dependencies
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
rust
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
navicore/anz#29
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Background
anz client add --redirect-uri <uri>takes a single value, but theclients.redirect_uriscolumn is stored as a JSON array — the schema clearly anticipates multiple per client.Real-world SPA workflows almost always need at least two URIs on the same
client_id:https://app.example.com/callback)http://localhost:5173/callback)Today there's no way to register both without editing the database directly.
Encountered
Came up during the navinote integration. Worked around it by only registering the prod redirect for
navinote-pwa, but it means I can'tvite devagainst the deployed anz without a second client_id.Proposed
Either:
--redirect-uriflags onanz client add(clap'sArgAction::Append).anz client add-redirect-uri --client-id <id> --uri <uri>/anz client remove-redirect-uri ...subcommands.Option 1 is simpler; option 2 is more flexible (lets you change URIs without recreating the client). Either works.
Acceptance
/realms/{realm}/authorize; unregistered ones still rejected.anz client listshows all URIs for each client.#32