authenticate method

  1. @override
Future<bool> authenticate(
  1. String? correlationId,
  2. String userId,
  3. String password
)
override

Authenticates a password.

  • correlationId (optional) transaction id to trace execution through call chain.
  • userId an id of password.
  • password a password to be authenticated. Return Future that receives bool value of the authentication result.

Implementation

@override
Future<bool> authenticate(
    String? correlationId, String userId, String password) async {
  var timing = instrument(correlationId, 'passwords.authenticate');
  var authenticated =
      await controller.authenticate(correlationId, userId, password);
  timing.endTiming();
  return authenticated;
}