[api] Replacing HttpBasicEngine with CredentialsEngine. IN-6