I have written a role provider which assumes Windows authentication and so far works well with WCF services and ASP.NET. Is it possible to use it also with a console/WPF/WinForm application? I tried a configuration like this on a very simple console app but the Initialize method of the provider doesn't even get called (thanks in advance):
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.web>
<authentication mode="Windows" />
<roleManager enabled="true"
defaultProvider="Authorization.RoleProvider">
<providers>
<clear/>
<add name="Authorization.RoleProvider"
type="Authorization.RoleProvider, Authorization.RoleProvider"
applicationName="urn:AuthorizationDemo:Program"
authorizationServiceUrl="net.pipe://localhost/Authorization/Authorization.svc"/>
</providers>
</roleManager>
</system.web>
</configuration>