authorize method

Future<bool> authorize (
  1. String correlationId,
  2. String userId,
  3. List<String> roles
)

Checks the authorization.

  • correlation_id (optional) transaction id to trace execution through call chain.
  • userId an user id.
  • roles a roles to be revoked. Return (optional) Future that receives bool value of authorization or error.