The NetSqlAzManAuthorization attribute and caching

Sep 30, 2011 at 9:52 AM

The NetSqlAzManAuthorization attribute looks like a great way for us to protect access to elements in our pages and preliminary tests show it's working well. I think it's currently implemented to support only direct db (SqlAzManStorage) and local cache (StorageCache) access checking. Am I right? If so can you tell me if there are there any plans to add support for access checking via the WCF cache service?

Sep 30, 2011 at 10:04 AM

Why you say that ?

Attributes are fully supported also in the WCF Cache service.

(AuthorizedItem.Attributes property)

Sep 30, 2011 at 10:24 AM

The attribute I'm talking about is the 'aspect programming style' attribute that can be applied to page controls / winform controls e.g.:

[NetSqlAzManAuthorization("AccessAccountInfo", "Enabled", false)]       

protected Button btnAccountInfo;

I think that when the NetSqlAzManAuthorizationContext.CheckSecurity method is called, it only works with SqlAzmanStorage or StorageCache but not the WCF cache service. Is that correct?

Oct 4, 2011 at 1:27 PM

Now I have understood.

Yes attributes are not managed from the AOP attributes.

__________________________________
Andrea Ferendeles
NetSqlAzMan Project Coordinator
E-mail aferende@hotmail.com Web http://netsqlazman.codeplex.com