Override the ClaimsToHeadersMiddleware by the OcelotPipelineConfiguration settings#1403
Conversation
|
@kesskalli Hi Karim! 3 years have been passed... |
raman-m
left a comment
There was a problem hiding this comment.
The changes are not covered by unit and acceptance tests!
Let's collaborate on writing tests...
3fd2d08 to
ab2d12c
Compare
|
@kesskalli Hi Karim! I see that develop branch in your fork is old! |
|
@kesskalli commented on Dec 28, 2020:
I see these changes. The community will review them soon.
Yeah, but in theory. And I don't see these changes in files. Also, don't forget to write tests please! Is this PR related to an issue in backlog? |
ab2d12c to
8e88acb
Compare
OcelotPipelineConfiguration settings
OcelotPipelineConfiguration settingsClaimsToHeadersMiddleware by the OcelotPipelineConfiguration settings
New Feature
The idea is to allow to use custom claims to headers transformation logic after the authorization process is done.
The transformation using a JSON file requires to handle everything by route. The file will become very verbose in this case.
In some cases, the internal HTTP services can expect some HTTP "X-" Headers to get more context about the request (to support multi-tenancy for instance), the override will allow to add them automatically.
Proposed Changes