views:

199

answers:

1

I am using a WCF authentication service I set up with a web application. I have successfully set up and tested the AuthenticationService and RolesService. The web application can successfully call methods like ValidateUser and GetRolesForCurrentUser through the WCF services.

I want to integrate the WCF authentication service with my web.config and site.map. Do I need to write a custom provider, or is there some way I can modify the web.config of the web application to use the WCF authentication service as its membership provider?

This way I can set what roles have access to what directories based off the WCF authentication service.

+1  A: 

Application Services are not intended as a replacement for the provider stack.

They are meant to augment and enable usage from context other than .aspx.

In most cases you may simply use the default provider stack (Membership/Roles/Profiles).

You simply need to pass the cookies that you get when you call 'Login' via app services around in the context of the service call.

See here for some more information about adding cookies to a WCF call.

If you are using AJAX to call the services, you don't have to do anything, simply authenticate via ajax and then call via ajax.

Sky Sanders