KestrunHostAuthExtensions.HasAuthPolicy method
Checks if the specified authorization policy is registered in the Kestrun host.
public static bool HasAuthPolicy(this KestrunHost host, string policyName)
parameter | description |
---|---|
host | The Kestrun host instance. |
policyName | The name of the authorization policy to check. |
Return Value
True if the policy is registered; otherwise, false.
See Also
- class KestrunHost
- class KestrunHostAuthExtensions
- namespace Kestrun.Hosting