I have a asp.net application I wrote which has a lot of Web API controllers.
Currently, when a user logs into my application it uses Sessions, and the user account is authenticated with my own SQL table storing username and password (Hashed) etc...
If the user knows or views the js source/or fiddler they can see the Web API call and get the URL for that Controller which they could potentially call outside the application.
I would like to somehow secure this so it does not allow them to access it outside the application, or even better check the user is allowed to execute the request.
What is the best way of doing this?
Thanks