NetSqlAzMan authentication

Jun 29, 2011 at 6:16 AM
Edited Jun 29, 2011 at 7:23 AM

Can i use NetSqlAzMan as a membership provider, or how i can integrate authentication with NetSqlAzMan?

What i did is:

What else, to enable authentication by NetSqlAzMan, and how on client side to specify, user, password?

ServiceClient client = new ServiceClient();

client.ClientCredentials.UserName.UserName = "Admin";

client.ClientCredentials.UserName.Password = "123";




Jun 29, 2011 at 8:39 AM

Yes of course.

See the NetSqlAzMan – Guide.pdf, Tutorial 7 .



Jun 29, 2011 at 8:43 AM
Edited Jun 29, 2011 at 8:47 AM

var dbUser = provider.GetApplication().GetDBUser("Arianna");

But how i can access the user that invoked the service operation, and all is okay if i use only role provider, to make authentication and authorization?

Do i need wcf cache service? And why?



Jun 29, 2011 at 8:54 AM

You can use ServiceSecurityContext class in the System.ServiceModel namespace.

This gives you the current identity using ServiceSecurityContext.Current.PrimaryIdentity (and also exposes the current WindowsIdentity).

Andrea Ferendeles
NetSqlAzMan Project Coordinator
E-mail Web

Jun 29, 2011 at 9:06 AM

Thanks a lot.