authenticate method

Future<void> authenticate()

Authenticate at the CARP server.

Implementation

Future<void> authenticate() async {
  print('CARP app: $app');
  CarpService().configure(app);
  print('Authenticating to the CARP Server...');
  await CarpService().authenticateWithUsernamePasswordNoContext(
      username: username, password: password);
  print("Authenticated as user: '$username'");
  CarpProtocolService().configureFrom(CarpService());
}