You must Sign In to post a response.
  • Category: ASP.Net MVC

    How do we implement Roles permision in MVC .net

    1, I am planing to implement authorization functionlity in MVC application , How do we implement in mvc application , Can any one please suggest me good one thanks praveen
  • #762858
    Hello Praveen,

    You can refer the below link :

    http://www.codeproject.com/Articles/730841/ASP-NET-MVC-Identity-Implementing-Group-Based

    http://www.codeproject.com/Articles/730840/ASP-NET-MVC-Identity-Implementing-Group-Based

    http://www.codeproject.com/Articles/875547/Custom-Roles-Based-Access-Control-RBAC-in-ASP-NET


    Hope this will help you to understand and implement role based permission.

    Regards,
    Nirav Lalan
    DNS Gold Member
    "Failure is the path of least persistence"

  • #762862
    Hi,

    The best way to do it using Forms Authentication:

    What is Forms Authentication in ASP.net Webforms:
    • End user make a request, then browser will send the associated cookie stored in the client machines.
    • When request is received from server end, server examines the request and validate for the <b>"Authentication Cookie".</b>
    • If cookie is found, server confirms the identity of the users, and allows him/ her to further process.
    • If cookie is not found</b>, then server confirms that user is an unauthenticated user. In this case will redirect him back to login page again.

    Just now only I prepared an article for the same, I request you to please go through the below link and read the article fully if you have any doubts please revert back to me.

    http://www.dotnetspider.com/resources/46249-Forms-Authentication-in-ASPnet-MVC-with-sample-Application.aspx

    Hope this will helpful to you...

    --------------------------------------------------------------------------------
    Give respect to your work, Instead of trying to impress your boss.

    N@veen
    Blog : http://naveens-dotnet.blogspot.in/

  • #762863

    --------------------------------------------------------------------------------
    Give respect to your work, Instead of trying to impress your boss.

    N@veen
    Blog : http://naveens-dotnet.blogspot.in/

  • #762866
    Hai Praveen,
    We can create the Form based authentication and then we can validate the request-whether the request is valid and authenticated.
    You can go to the below link for step by step process of implementing the Form based authentication:

    http://www.codeproject.com/Articles/601687/ASP-NET-MVC-Forms-Authentication-Customized

    Hope it will be helpful to you.

    Regards,
    Pawan Awasthi(DNS MVM)
    +91 8123489140 (whatsApp), +60 14365 1476(Malaysia)
    pawansoftit@gmail.com


Sign In to post your comments