Answer the question
In order to leave comments, you need to log in
Simple authorization on ASP.NET MVC3?
Hello.
It would not be desirable to use the massive built-in authorization, for only one user.
What other ways are there, simpler?
Is there a good manual for Forms Athentication somewhere? And then I did not understand something right off the bat ...
Answer the question
In order to leave comments, you need to log in
What other ways are there, simpler?
Steven Sanderson - Pro ASP.NET MVC 2
Steven Sanderson - Pro ASP.NET MVC 3
In the Securing the Administration Features section. There are only a few pages of description, the code can be copied. The meaning is something like this:
<authentication mode="Forms">
<forms loginUrl="~/Account/LogOn" timeout="2880">
<credentials passwordFormat="Clear">
<user name="admin" password="secret" />
</credentials>
</forms>
</authentication>
* This source code was highlighted with Source Code Highlighter.
here on Habré a person made his own authorization mechanism in MVC - habrahabr.ru/blogs/aspnet_mvc/127755/
Maybe it will suit you.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question