NetSqlAzMan authentication

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

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

What i did is:

http://img708.imageshack.us/img708/4364/doneyy.png

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";

??

Regards,

Sergiu.

Jun 29, 2011 at 9:39 AM

Yes of course.

See the NetSqlAzMan – Guide.pdf, Tutorial 7 http://netsqlazman.codeplex.com/releases/53395/download/218887 .

Regards,

Andrea.

Jun 29, 2011 at 9:43 AM
Edited Jun 29, 2011 at 9: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?

Regards,

Sergiu.

Jun 29, 2011 at 9: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 aferende@hotmail.com Web http://netsqlazman.codeplex.com

Jun 29, 2011 at 10:06 AM

Thanks a lot.