I have a basic custom AuthenticationHandler like in this post https://jasonwatmore.com/post/2018/09/08/aspnet-core-21-basic-authentication-tutorial-with-example-api
In the Task<AuthenticateResult> HandleAuthenticateAsync()
override I need to to get the controller name.
Injecting IActionContextAccessor in the startup doesn't work:
services.AddSingleton<IActionContextAccessor, ActionContextAccessor>();
The ActionContext property is null (not set yet I think)
HttpContext is available, so should i just try to parse the Context.Request.Path ?
Thanks in advance !