I am trying to implement Authorization in my .Net Core web api and after setting up my program.cs and after "decorating" the desired method with the [Authorize("ArchiveList")]
I am having problems with handling the request in my HandleRequirement method.
I want to be able to access the name of the method that is making the request, and that is in the context.Resource
-> Field but when I try to read context.Resource
it only gives me the string "HotChocolate.Execution.Processing.MiddlewareContext` which is not what I really need/want.
I can share the program.cs authorization coding part if needed.
Thank you in advance.