You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have discussed this feature request with the community.
Describe the background of your feature request
Currently, when wanting to change the payload of a remote authorizer on a per-pipeline basis, one needs to override the full payload string.
For an authorization API like OpenFGA's, this means that pipelines have to be defined as follows:
making it easier to replace parts of the URL without having to fully retype it each time.
I propose a similar mechanism for substituting values into the payload, where the above mentioned openfga authorizer could for example be defined as such:
making it more difficult to accidentally mess up the payload.
Are there any workarounds or alternatives?
Currently the workaround is what I described in the problem, i.e. always specifying the full payload.
A different way of implementing the solution I mentioned would be to use the same values object for both substituting into the URL and into the payload, as I don't really see a reason why they should be separated. In that case I'd remove the values key from the endpoint object and just have one directly in config.
Preflight checklist
Describe the background of your feature request
Currently, when wanting to change the payload of a
remote
authorizer on a per-pipeline basis, one needs to override the full payload string.For an authorization API like OpenFGA's, this means that pipelines have to be defined as follows:
which is error-prone and repetitive.
Describe your idea
The
remote
authorizer already has a feature that allows substituting values into the URL, like so:where the pipeline can then contain
making it easier to replace parts of the URL without having to fully retype it each time.
I propose a similar mechanism for substituting values into the payload, where the above mentioned
openfga
authorizer could for example be defined as such:and then used in a pipeline like
making it more difficult to accidentally mess up the payload.
Are there any workarounds or alternatives?
Currently the workaround is what I described in the problem, i.e. always specifying the full payload.
A different way of implementing the solution I mentioned would be to use the same
values
object for both substituting into the URL and into the payload, as I don't really see a reason why they should be separated. In that case I'd remove thevalues
key from theendpoint
object and just have one directly inconfig
.Version
n/a
Additional Context
This feature was discussed in this Discord thread: https://discord.com/channels/1100447190796742698/1120438467411857558
The text was updated successfully, but these errors were encountered: