c# - ASP.NET: Form Based Authentication VS Application Internal (Domain Specific) Roles -


i new asp.net , working on asp.net web site application in have internal (or domain specific) roles. like, boardofdirectors, managers, secretary belonging employee class , shareholder role, 1 company administrator/creator/owner etc. these roles internal (or domain/business model) specific roles delimit business functions specific role/actor can perform.

one of colleagues told me r&d on asp.net forms-based authenticatoin, authorization , membership class etc. initally got idea asp.net provides ready-made role management module can customized domain specific needs (just see in ready-made cms systems)

but, after googling, reallized form-based authentication limits roles on use of web resources specificlaly pages. leads me idea internal (or domain specific) role management not related asp.net form-based authentication. instead form-based authentication (as restricts access pages in website) can used manage external roles of website web site adminsitrator (having different website folder/file structure should accessed merely role specified in database site admin or so. similarly, form-based authentication can used discriminate between site member , free user/visitor.

for internal/domain specific roles, not see reason create multiple pages in different role-based folders duplicate or overlapping functionality company creator able business functions manager can do, not create 2 separate folders/files; 1 company creator , other manager manager page duplicating of functionality company creator. feel appropriate handle domain roles using business logic (in domain model layer).

i need suggestion if wrong in understanding/assumption, or if missing something?

regards

do not mix authentication , authorization.

authentication in case going done using forms-based authentication, , authorization going based on user roles.

authentication ensure system recognizes user. authorization ensure whether or not user allowed perform actions or functionality.


Comments

Popular posts from this blog

c++ - CryptStringToBinary API behavior -

c++ - Correct method for redrawing a layered window -

java.util.scanner - How to read and add only numbers to array from a text file -