开发者

Authetication system for 1 user - asp.net

开发者 https://www.devze.com 2023-02-09 01:34 出处:网络
I have only one user for my asp.net application and I have to create the authentication system for the website. What could be the best, secure and easiest way I can do that?

I have only one user for my asp.net application and I have to create the authentication system for the website. What could be the best, secure and easiest way I can do that?

What I believe that createing a table in a database for a single user is not at all a good 开发者_如何学JAVAchoice. At the same time, security is the major need for the authentication.


You can store the username and (hashed) password in the web.config.

http://msdn.microsoft.com/en-us/library/e01fc50a.aspx


Since you don't have to worry about user maintenance, just add the user to the local system and establish integrated windows authentication. This keeps the password secure, the login is done through NTLM, and you can use the built-in Identity class to keep track of the logged in user.

0

精彩评论

暂无评论...
验证码 换一张
取 消