I have an ASP.NET MVC application that I want to check action permission when URL change.
For example, I have an action that uses to change password users. when the user clicks it, first send authorize code to the user, then navigate the user to change password action.
But if the user put action name in URL directly, the authorize action is not called.
How can I check action permission when the user enters it directly in the URL?
Copyright Notice:Content Author:「Pouria Montakhabi」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/58570477/how-to-check-action-permission-from-url-in-asp-net-mvc