Interface IFallbackAuthorizationEvaluator
- Namespace
- Cratis.Arc.Authorization
- Assembly
- Cratis.Arc.Core.dll
Supplies baseline authorization requirements when a command type or query target has no explicit authorization declaration.
public interface IFallbackAuthorizationEvaluator
- Extension Methods
Remarks
All requirements from all fallback evaluators must pass. Explicit declarations, including anonymous access, replace the baseline. Implementations are discovered by convention and evaluated for each authorization check.
Methods
GetAuthorizationRequirements(MethodInfo)
Gets the baseline requirements for a query method without an explicit declaration. Commands and queries whose authorization target is a type do not consult this overload.
IEnumerable<AuthorizationRequirement> GetAuthorizationRequirements(MethodInfo method)
Parameters
methodMethodInfoThe method to check.
Returns
- IEnumerable<AuthorizationRequirement>
Requirements that must all be satisfied, or an empty sequence when this evaluator does not apply.
GetAuthorizationRequirements(Type)
Gets the baseline requirements for a command or type-targeted query without an explicit declaration. Query methods also consult their declaring type through this overload.
IEnumerable<AuthorizationRequirement> GetAuthorizationRequirements(Type type)
Parameters
typeTypeThe type to check.
Returns
- IEnumerable<AuthorizationRequirement>
Requirements that must all be satisfied, or an empty sequence when this evaluator does not apply.