title: How to authenticate API calls from MVC
body: <p>I have two projects in my solution (Web API type and MVC type). MVC project calls the APIs in API project. When i run the application i logged into the web. Now i want to authenticate the API calls in the API project using oAuth. How can i achieve this ? I have implemented the oAuth classes in the API project. Issue is that when i hit the URL for getting the token using username and password i get "invalid_grant" exception, which is obvious because my there is no log in in the API project. How can i do this ? From what i got from google is that i have to use "Password Credentials Flow". Can anyone provide me with the code for this</p>