You should override IsAuthorized, which "Determines whether access for this particular request is authorized."
Which AuthorizationFilterAttribute method should I override?
-
13-07-2023 - |
Frage
I would like to create my custom authorization filter. I see that in System.Web.Http.AuthorizeAttribute there are two similar methods IsAuthorized and OnAuthorization. Which one should I override and why?
Lösung
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow