ClaimPolicyExtensions.ToAuthzDelegate method

Turns ClaimPolicyConfig into the delegate that services.AddAuthorization(...) needs.

public static Action<AuthorizationOptions> ToAuthzDelegate(this ClaimPolicyConfig cfg)
parameter description
cfg The claim-based policy configuration.

Return Value

An Action that registers all policies.

See Also