I have a user interface with jQuery that calls an MVC call using an Ajax request.
I would like to check each request against userProfile (a custom class that contains an account number, identifier, etc.).
Can anyone suggest if you can create your own authorization attribute to verify that both requests and the user file are the same?
Then I would like to do something like below:
[AuthorizeUser] public ActionResult GetMyConsumption(string accountNumber) { ..... return View(); }
source share