verify abstract method

Future<bool> verify(
  1. Map<String, String> headers,
  2. Secured secured
)

Verify the client is allowed to access this resource. Headers contains all HTTP headers, path and query parameters. Secured contains the security metadata on the annotated method. Implementations should extract the claims from headers and verify the condition in secured.

Implementation

Future<bool> verify(Map<String, String> headers, Secured secured);