Click here to Skip to main content
15,879,474 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hey guys, I'm completely new (started yesterday) to asp.net web api and I'm making a project where I have all user info on a DB (username and password) and on this app I don't even want the possibility to register... the only ones who can login are the ones who are on the DB but I don't know how to do this authentication... what's the best way (easier to implement and safe) to do this and how?
Posted
Comments
Sinisa Hajnal 29-Jan-15 6:21am    
Make login form.
On button click, check the database for given data
If it is found, user can proceed else shoot him down.

Do some research, find/create some code and come back when you get stuck. Thank you.
Richard Deeming 29-Jan-15 7:29am    
Have a look at the articles on the ASP.NET site:
http://www.asp.net/web-api/overview/security[^]

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