Authentication and User Permission with MVC

Asked

Viewed 6,871 times

2

I’m developing an MVC 3 application, using C# for Models and Controllers and Razor with HTML for Views. I want to implement authentication and user permission to the system. How can I do this using the features that MVC provides for user control?(If so). Can do?

  • While a good answer does not come, I can give you a prediction http://nerddinnerbook.s3.amazonaws.com/Part9.htm

1 answer

2


Answer:

Yes, it is possible.

Explanation:

If you’re starting with the I suggest you research the Class FormsAuthentication, for user authentication and class AuthorizeAttribute to carry out access control.

Reference:

This link below is from an article that, from what I interpreted of your question, falls like a glove for what you need.

http://www.devmedia.com.br/asp-net-mvc-autenticacao-basica/20255

  • 2

    Be very careful when posting responses with only links as information, as if the link breaks your answer automatically becomes null and useless. You should write the relevant information here at Stackoverflow, in your reply.

  • 2

    Thanks for the comment, I’m new here. I edited the reply and I wonder if I need to improve it further.

  • Arrange, however, the question about whether you need to improve the answer even more, it goes from you, if you think you should improve, better answers are always very welcome here at Stackoverflow, the better it is, and the more your answer is specified, more reputation points you will earn for it, as users will see that it is a correct, useful and clear answer, so they will increase +1. Another tip is to format your answer well, involving in "`" to highlight code or Class name, bold in what is important, and maybe "#" for Headers (famous H1,H2,H3), or ">" p/quote

  • I will edit your reply and see how it would look best formatted.

  • Thank you Paulo Roberto.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.