Posts

Showing posts from April, 2016

ASP.NET MVC Fine Grained Identity & Access Control - Part 2

Image
In this series I will explain how I designed a generic claims based access control system ASP.NET MVC 5 with Identity 2.0. In Part 1, I describe my approach and the initial database design. ASP.NET MVC Fine Grained Identity & Access Control - Part 1

In this Part 2, I will start laying foundation for the whole system with all the data models and a functional UI.



So far completed coding is in the GitHub repo: https://github.com/dirnthelord/ClaimsAuth

First, I need to decide what functionality the UI should have.
As a super admin, I need to be able to view the application resources from the UI. Add a description and search them.As a super admin, I need to be able to manage all the users in the system.As a super admin, I need to be able to manage global permissionsAs a super admin, I need to be able to manage user groups and group permissionsAs a super admin, I need to be able to manage user groups and group permissions
So, these are the list of things I need to be able to do withi…

Why You Should Always Use Decorator Pattern

Image
Life get easier when you have more reusable decorators and a good dependency injector.

Years before I choose this programming/engineering career, I always wondered, how can I make something better? How can I make it work faster or efficiently? I'm no backyard scientist or whatever so basically, it was all just thinking and speculating. Running simulations in my head, kinda. Once I started programming, I was interested in making machines talk. "Knight Rider" was my inspiration. Talking cars!!! And then, I was super interested in learning all the mechanisms behind AI. I'm a fan of AI, taking over the world or not, I always wanted to build one. For some fucked up reason, I still can't even get a simple neural-net working. Sure, copy pasting works but what's the point. I suck at math, may be that's the reason. And, as with everything in life, we come up with excuses to either postpone something or completely give up and look the other way. I just never, comp…