open-consul/ui/packages/consul-ui/app/adapters
John Cowen 10c1f5d089
ui: [Port] Ensure the tokens default nspace (and partition) is passed thru to the auth endpoint (#11490)
Most HTTP API calls will use the default namespace of the calling token to additionally filter/select the data used for the response if one is not specified by the frontend.

The internal permissions/authorize endpoint does not do this (you can ask for permissions from different namespaces in on request).

Therefore this PR adds the tokens default namespace in the frontend only to our calls to the authorize endpoint. I tried to do it in a place that made it feel like it's getting added in the backend, i.e. in a place which was least likely to ever require changing or thinking about.

Note:  We are probably going to change this internal endpoint to also inspect the tokens default namespace on the backend. At which point we can revert this commit/PR.

* Add the same support for the tokens default partition
2021-11-11 12:02:29 +00:00
..
application.js ui: Restrict the viewing/editing of certain UI elements based on the users ACLs (#9687) 2021-02-19 16:42:16 +00:00
auth-method.js ui: Adds Partitions to the HTTP layer (#10447) 2021-09-15 18:09:55 +01:00
binding-rule.js ui: Partitions Application Layer (#11017) 2021-09-15 19:50:11 +01:00
coordinate.js ui: Adds Partitions to the HTTP layer (#10447) 2021-09-15 18:09:55 +01:00
dc.js
discovery-chain.js ui: Adds Partitions to the HTTP layer (#10447) 2021-09-15 18:09:55 +01:00
http.js
intention.js ui: Filter global intentions list by selected partition (#11475) 2021-11-09 17:38:24 +00:00
kv.js ui: Fix up blocking reconciliation for multiple models (#11237) 2021-10-07 12:38:04 +01:00
node.js ui: Partitions Application Layer (#11017) 2021-09-15 19:50:11 +01:00
nspace.js ui: Partitions Application Layer (#11017) 2021-09-15 19:50:11 +01:00
oidc-provider.js ui: Adds Partitions to the HTTP layer (#10447) 2021-09-15 18:09:55 +01:00
partition.js ui: Adds initial CRUD for partitions (#11188) 2021-10-08 16:29:30 +01:00
permission.js ui: [Port] Ensure the tokens default nspace (and partition) is passed thru to the auth endpoint (#11490) 2021-11-11 12:02:29 +00:00
policy.js ui: Adds Partitions to the HTTP layer (#10447) 2021-09-15 18:09:55 +01:00
proxy.js ui: Adds Partitions to the HTTP layer (#10447) 2021-09-15 18:09:55 +01:00
role.js ui: Adds Partitions to the HTTP layer (#10447) 2021-09-15 18:09:55 +01:00
service-instance.js ui: Adds Partitions to the HTTP layer (#10447) 2021-09-15 18:09:55 +01:00
service.js ui: Adds Partitions to the HTTP layer (#10447) 2021-09-15 18:09:55 +01:00
session.js ui: Adds Partitions to the HTTP layer (#10447) 2021-09-15 18:09:55 +01:00
token.js ui: Partitions Application Layer (#11017) 2021-09-15 19:50:11 +01:00
topology.js ui: Adds Partitions to the HTTP layer (#10447) 2021-09-15 18:09:55 +01:00