Interface IAuthorizationEvaluator

Namespace
Cratis.Arc.Authorization
Assembly
Cratis.Arc.Core.dll

Defines a contract for performing authorization checks.

public interface IAuthorizationEvaluator
Extension Methods

Methods

IsAuthorized(MethodInfo)

Checks if the current user is authorized based on the AuthorizeAttribute on the specified method.

bool IsAuthorized(MethodInfo method)

Parameters

method MethodInfo

The method to check for authorization attributes.

Returns

bool

True if authorized, false if unauthorized.

IsAuthorized(Type)

Checks if the current user is authorized based on the AuthorizeAttribute on the specified type.

bool IsAuthorized(Type type)

Parameters

type Type

The type to check for authorization attributes.

Returns

bool

True if authorized, false if unauthorized.