When enriching request claims, what are the drawbacks to using .Use()
vs. AddHttpRequestInterceptor
?
#5943
Unanswered
onionhammer
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Obviously HotChocolate is not suitable for serving files, so I'm trying to add a "download" endpoint which is just a simple "MapGet" to download a document from my server.
The issue I'm running into is that the ClaimsIdentity is not enriched for this "MapGet" endpoint, but if I switch to a simple ASP.NET
.Use()
middleware, I feel like I ought to be able to accomplish the same thing in 1 place - it runs ahead of graphql queries as well as "MapGet" endpoints.Anyone foresee any drawbacks to this approach?
Beta Was this translation helpful? Give feedback.
All reactions