Base solution for your next web application
Open Closed

Proper way to implement claims #3704


User avatar
0
joshhulbert created

I have the need to maintain some data for users in my application that indicates what customer/company that user belongs to (they could potentially be in more than one) and subsequently what data they will have access to because of that association. From reading other posts about potentially extending the built in user entity it sounds like the better approach would be to implement claims. Could you point me in the direction of the proper place in which to make that modification?


2 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    If you are using ASP.NET Core version, you can check this gist <a class="postlink" href="https://gist.github.com/ismcagdas/6f2a9a3b5d7b907cb8d94a72124d59a1">https://gist.github.com/ismcagdas/6f2a9 ... 72124d59a1</a>.

    If you are using ASP.NET MVC 5.x, then we will prepare a sample gist for that as well. Please let us know if you are using MVC 5.x.

    Thanks.

  • User Avatar
    0
    joshhulbert created

    Thanks! I am using the mvc +angular version. Any input or example you may have on that would be very helpful.