Table of Contents

Class AuthorizationPolicyProvider

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

Constructors

AuthorizationPolicyProvider(IOptions<AuthorizationOptions>)

public AuthorizationPolicyProvider(IOptions<AuthorizationOptions> options)

Parameters

options IOptions<AuthorizationOptions>

Methods

GetPolicyAsync(string)

Gets a Microsoft.AspNetCore.Authorization.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 Microsoft.AspNetCore.Authorization.AuthorizationPolicy.