MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / RequestAuthenticationToken

Method RequestAuthenticationToken

collaboration.cpp:709–717  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

707
708
709std::string Remote::RequestAuthenticationToken(const std::string& username, const std::string& password)
710{
711 char* token = BNRemoteRequestAuthenticationToken(m_object, username.c_str(), password.c_str());
712 if (token == nullptr)
713 throw RemoteException("Failed to authenticate");
714 std::string result = token;
715 BNFreeString(token);
716 return result;
717}
718
719
720void Remote::Connect(const std::string& username, const std::string& token)

Callers

nothing calls this directly

Calls 2

RemoteExceptionClass · 0.85
c_strMethod · 0.80

Tested by

no test coverage detected