Simple authorization ASP.NET MVC3?

Hello.

I do not want to use a massive integrated security for only one user.

What are some other ways, easier?

Is there somewhere a good manual for Forms Athentication? And something I didn't understand...
October 8th 19 at 02:29
3 answers
October 8th 19 at 02:31
What are some other ways, easier?
Steven Sanderson — Pro ASP.NET MVC 2
Steven Sanderson — Pro ASP.NET MVC 3

In the section where they make the admin area ("Securing the Administration Features"). There are only a few pages of the description, the code can be copied. The meaning is something like this:
<font color="black"><font color="#0000ff"><</font><font color="#800000">authentication</font> <font color="#ff0000">mode</font><font color="#0000ff">="Forms"</font><font color="#0000ff">></font> <br> <font color="#0000ff"><</font><font color="#800000">forms</font> <font color="#ff0000">loginUrl</font><font color="#0000ff">="~/Account/LogOn"</font> <font color="#ff0000">timeout</font><font color="#0000ff">="2880"</font><font color="#0000ff">></font> <br> <font color="#0000ff"><</font><font color="#800000">credentials</font> <font color="#ff0000">passwordFormat</font><font color="#0000ff">="Clear"</font><font color="#0000ff">></font> <br> <font color="#0000ff"><</font><font color="#800000">user</font> <font color="#ff0000">name</font><font color="#0000ff">="admin"</font> <font color="#ff0000">password</font><font color="#0000ff">="secret"</font> <font color="#0000ff">/></font> <br> <font color="#0000ff"><!--</font--><font color="#800000">credentials</font><font color="#0000ff">></font> <br> <font color="#0000ff"><!--</font--><font color="#800000">forms</font><font color="#0000ff">></font> <br> <font color="#0000ff"><!--</font--><font color="#800000">authentication</font><font color="#0000ff">></font></font><br> <font color="gray">* This source code was highlighted with <a href="http://virtser.net/blog/post/source-code-highlighter.aspx"><font color="gray">Source Code Highlighter</font></a>.</font></font></font></font>


Username and password are stored in the Web.config (password of course, should be stored in a hash, e.g., SHA1). Then you can use [Authorize] and everything will work for multiple users — I think optimally, no databases.
October 8th 19 at 02:33
here on habré human doing your authentication mechanism in MVC habrahabr.ru/blogs/aspnet_mvc/127755/
Can you.
Thanks will look - darien.Hackett commented on October 8th 19 at 02:36
October 8th 19 at 02:35
Use Windows Authentication. Easier to nowhere.
Read more here: http://www.asp.net/mvc/tutorials/older-versions/security/authenticating-users-with-windows-authentication-cs.
There right there is a link on the docks by Forms Authentication.
Win auth in Internet aplikuj somehow not kosher... - darien.Hackett commented on October 8th 19 at 02:38

Find more questions by tags .NETASP.NETC