Azure Functions - In-Process Authorization #4697
dhaligas
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Here is an example HttpTrigger on how to get the [Authorize] directive working with Azure Functions.
The key is getting the ClaimsPrincipal from invoking AuthenticateAsync and setting it into the HttpContext.User. This is where HotChocolate is expecting this to be populated.
Beta Was this translation helpful? Give feedback.
All reactions