evaluate method

  1. @override
bool evaluate(
  1. Map<String, dynamic> claims,
  2. Map<String, String> headers
)
override

Returns false when the client is not allowed to access the resource. Claims contains all security claims found for the principal (eg. in a JWT token). Headers returns all path and query parameters, and HTTP headers.

Implementation

@override
bool evaluate(Map<String, dynamic> claims, Map<String, String> headers) =>
    claims[name] == value;