Authentication approach to be use in asp.net Web api and angular js
I am creating 1 website using Web api and angular js and i am so much confused about Authentication to be used in my web site. I have created one login.js in which there would be my Login method which will post my Username/Emailid and password to my Web Api and the method in web api will authenticate that user. Code: $scope.Login() { $.post("api/Authentication/Login",Username,Password) { } } Web api code: [Route] Public Task<object> Login([FromBody] username,password) { //method to authenticate user from database. //Now the tricky parts comes like after authenticating user should i //just