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
methodMethodInfoThe 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
typeTypeThe type to check for authorization attributes.
Returns
- bool
True if authorized, false if unauthorized.