Simple authorization ASP.NET MVC3?

0 like 0 dislike
55 views
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...
by | 55 views

3 Answers

0 like 0 dislike
What are some other ways, easier?
Steven Sanderson — Pro ASP.NET MVC 2
Steven Sanderson — Pro ASP.NET MVC 3
\r
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:
\r
<authentication mode="Forms">
\r <forms loginUrl="~/Account/LogOn" timeout="2880">
\r <credentials passwordFormat="Clear">
\r <user name="admin" password="secret" />
\r </credentials>
\r </forms>
\r</authentication>

\r* This source code was highlighted with Source Code Highlighter.

\r
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.
by
0 like 0 dislike
here on habré. did your authentication mechanism in MVC habrahabr.ru/blogs/aspnet_mvc/127755/
Can you.
by
0 like 0 dislike
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.
by

Related questions

0 like 0 dislike
1 answer
asked Mar 26, 2019 by Nigrimmist
0 like 0 dislike
1 answer
asked Mar 25, 2019 by masterOk
0 like 0 dislike
2 answers
0 like 0 dislike
6 answers
110,608 questions
257,186 answers
0 comments
28,664 users