Table of Contents

Class AuthorizationPolicyProvider

Namespace
Oqtane.Security
Assembly
Oqtane.Server.dll
public class AuthorizationPolicyProvider : DefaultAuthorizationPolicyProvider
Inheritance
AuthorizationPolicyProvider

Constructors

AuthorizationPolicyProvider(IOptions<AuthorizationOptions>)

public AuthorizationPolicyProvider(IOptions<AuthorizationOptions> options)

Parameters

options IOptions<AuthorizationOptions>

Methods

GetPolicyAsync(string)

Gets a AuthorizationPolicy from the given policyName

public override Task<AuthorizationPolicy> GetPolicyAsync(string policyName)

Parameters

policyName string

The policy name to retrieve.

Returns

Task<AuthorizationPolicy>

The named AuthorizationPolicy.