Skip to content

Commit

Permalink
rewrite fetch prop on vertex: 1. support input/variable/multi-vertex-…
Browse files Browse the repository at this point in the history
…id/multi-tags. 2. keep order of input.
  • Loading branch information
xuguruogu committed Jul 11, 2020
1 parent 41406d3 commit 40934f6
Show file tree
Hide file tree
Showing 18 changed files with 836 additions and 362 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,6 @@ pids/
cmake-build-debug/
cmake-build-release/
.vscode/
cmake-build-debug*
cmake-build-release*

3 changes: 1 addition & 2 deletions src/graph/CloudAuthenticator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,12 @@ bool CloudAuthenticator::auth(const std::string& user, const std::string& passwo
}

// Second, use user + password authentication methods
StatusOr<std::string> result;
std::string userAndPasswd = user + ":" + password;
std::string base64Str = encryption::Base64::encode(userAndPasswd);

std::string header = "-H \"Content-Type: application/json\" -H \"Authorization:Nebula ";
header = header + base64Str + "\"";
result = http::HttpClient::post(FLAGS_cloud_http_url, header);
auto result = http::HttpClient::post(FLAGS_cloud_http_url, header);

if (!result.ok()) {
LOG(ERROR) << result.status();
Expand Down
Loading

0 comments on commit 40934f6

Please sign in to comment.