Click here to Skip to main content
15,887,350 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
I have a working WebApi project where I need to add authentication and authorization. We have a User Database to verify login credentials. I am not sure how to start with implementing authentication in WebApi.

I have went through the solution, understood the HMAC authentication completely which I Can easily implement. I am not sure if I should dig more into OAuth/Token based authentication or go with HMAC. I am not able to find any such code samples for OAuth.

Can any 1 suggest me the best practice to implement authentication in WebApi.

What I have tried:

I have went through the solution, understood the HMAC authentication completely which I Can easily implement. I am not sure if I should dig more into OAuth/Token based authentication or go with HMAC. I am not able to find any such code samples for OAuth.
Posted
Updated 5-Aug-16 1:51am

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900