This project is read-only.

If You Store Role Information in a Custom Store, Create a Custom Authorization Policy

- J.D. Meier, Carlos Farre, Jason Taylor, Prashant Bansode, Steve Gregersen, Madhu Sundararajan, Rob Boucher

If your application stores authorization data in a custom store such as a SQL Server database, create a custom authorization policy to authorize your users.

To create a custom authorization policy, you will implement a class derived from IAuthorizationPolicy along with an Evaluate method that you can customize for your user authorization policy.

The Policy library is configured in the config file or in code. The following example configures the policy location in the config file:
<serviceAuthorization serviceAuthorizationManagerType="Microsoft.ServiceModel.Samples.MyServiceAuthorizationManager, service">
<!-- The serviceAuthorization behavior allows one to specify custom authorization policies. -->
<authorizationPolicies>
	<add policyType="Microsoft.ServiceModel.Samples.CustomAuthorizationPolicy.MyAuthorizationPolicy, PolicyLibrary" />
</authorizationPolicies>
</serviceAuthorization>

Additional Resources

Last edited Jun 12, 2008 at 10:08 PM by prashantbansode, version 1

Comments

No comments yet.