Skip to content

How does AddClaimsToRequest work? #1935

Answered by WeihanLi
TimmyGilissen asked this question in Q&A
Discussion options

You must be logged in to vote

You may wanna see the Claims Transformation docs firstly!
if you wanna get a deep understand for how claims transform work, you may wanna have a look at the source code.

When you access an API, the Ocelot will check authentication, and if the user have a permission for the API. If authenticated successfully, Ocelot will get the claims of the user, and if you config ClaimsToRequest (Header/Query), the middleware will invoke after authenticated and before request the downstream.

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by raman-m
Comment options

You must be logged in to vote
1 reply
@raman-m
Comment options

Comment options

You must be logged in to vote
1 reply
@raman-m
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
Claims Transformation Ocelot feature: Claims Transformation
5 participants
Converted from issue

This discussion was converted from issue #874 on January 20, 2024 11:29.