Skip to content

Proposal: Pluggable route variables #737

@philproctor

Description

@philproctor

New Feature

Downstream route variables could pull from a pluggable architecture. I have implemented a similar mechanism in our companies usage of Ocelot, where downstream variables could be of the format {claim->UserID} to replace a variable with the first UserID claim and similar for request headers, cookies, and other variables. It also allows operations such as concatenating variables or similar. We also use it in claim authorization for routes.

Motivation for New Feature

All downstream variables currently require the variable to be a replacement from the upstream request. A system such as this would significantly increase flexibility allowing things such as routing to a URL based on the currently logged in user.

Metadata

Metadata

Assignees

Labels

needs feedbackIssue is waiting on feedback before acceptanceproposalProposal for a new functionality in OcelotwontfixNo plan to include this issue in the Ocelot core functionality.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions