Security Application Block in Enterprise Library

The new Security Application Block in Enterprise Library provides a few advantages over the old application block. It looks like it will be a lot simpler to use. Notably, it no longer appears designed around Authorization Manager’s peculiarities. In fact, it comes with an authorization implementation that does not depend on Authorization Manager.

There are a few concepts to understand when using the Security Application Blocks:

  • Authentication
  • Authorization
  • Roles
  • Profiles

Every person or system that interacts with your application will claim to have some rights to perform certain actions. Authentication is the process of verifying that the person or system is truly the user they are claiming to be. Most systems authenticate users using a username and password combination.

After the user is authenticated, your application must determine what actions or operations the user is allowed to execute. This is called authorization and in Enterprise Library is role-based.

Roles are assigned to users to define how they will use the application. The authorization system can check the user’s assigned roles to determine what actions or operations the user is allowed to execute.

The Security Application Block also provides a facility for storing profile information for each user. A profile can consist of primitive values, serializable objects or a dictionary of primitive values and serializable objects.

One of the new things in the security block is a simple backend database to store user, role and profile information. This removes the dependency of having an Active Directory database and Authorization Manager installed. You can start from this simple database and then upgrade to AD an AzMan in production, if required.

One thing I could not find is the actual provider for Authenticating against Active Directory. It must be in there, right?

Print | posted on Tuesday, February 01, 2005 2:50 AM

Feedback

# re: Security Application Block in Enterprise Library

left by Chris Kinsman at 2/1/2005 1:20 PM Gravatar
it is there for roles but not authentication...

Very odd.

Chris

# re: Security Application Block in Enterprise Library

left by Tim at 4/11/2005 3:56 PM Gravatar
For most cases, AD AuthN works pretty well out of the box.

# re: Security Application Block in Enterprise Library

left by marco at 4/27/2005 10:09 AM Gravatar
the weird thing is the Profile... I don't believe is usable in real situations. Let's see... if I store email addresses of my users in the profile, how can I make a mass mailing to them? do I have to load each profile? clumsy. A plain old select emailAddx from userdetails would be better...

# re: Security Application Block in Enterprise Library

left by Elias at 5/13/2005 5:01 PM Gravatar
I think security block is very useful, but is mandatory customize the authentication and profile DB, in order to store specific profile suited to app domain or storing basic profile information in a structured way.

# re: Security Application Block in Enterprise Library

left by ISMAIL at 3/31/2006 12:46 AM Gravatar
Can we use the security application block in asp.net application, and if yes can we use also the authentification by forms

# re: Security Application Block in Enterprise Library

left by Shah at 1/11/2007 3:11 AM Gravatar
Does anybody have an example of the usage of the Security Block ?

# re: Security Application Block in Enterprise Library

left by Nary Hum. at 2/27/2007 10:46 PM Gravatar

I want to know how to design security with application Block

# re: Security Application Block in Enterprise Library

left by Hla Yin Min at 5/11/2007 3:41 AM Gravatar
blog security

# re: Security Application Block in Enterprise Library

left by Andres B at 12/10/2007 2:38 PM Gravatar
Does anyone know how to use the active directory with the security block?

Thanks
Title  
Name
Email (never displayed)
Url
Comments   
Please add 7 and 6 and type the answer here: