❔ How to get triggering authentication scheme name in custom cookie authentication event
I have a custom cookie authentication event where I want to inject the authentication handler into the constructor and then retrieve the name of the authentication scheme. I am unsure of how to do this since there's an abstraction that uses the AuthenticationScheme property but the interface does not.
2 Replies
I was able to figure out I didn't need to inject it; I could just access and use it when ValidatePrincipal is called and access it via the context
Looks like nothing has happened here. I will mark this as stale and this post will be archived until there is new activity.