feat: update token URL construction in login method and add debug output
This commit is contained in:
@@ -63,7 +63,14 @@ bool OverteAuth::login(const std::string& username, const std::string& password,
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Construct OAuth token endpoint
|
// Construct OAuth token endpoint
|
||||||
std::string tokenUrl = m_metaverseUrl + "/oauth/token";
|
// From Overte AccountManager: /oauth/token path under metaverse server
|
||||||
|
std::string tokenUrl = m_metaverseUrl;
|
||||||
|
if (tokenUrl.back() == '/') {
|
||||||
|
tokenUrl.pop_back();
|
||||||
|
}
|
||||||
|
tokenUrl += "/api/v1/token"; // Try API v1 endpoint
|
||||||
|
|
||||||
|
std::cout << "[OverteAuth] Token URL: " << tokenUrl << std::endl;
|
||||||
|
|
||||||
// Construct POST data
|
// Construct POST data
|
||||||
std::ostringstream postData;
|
std::ostringstream postData;
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
// OverteAuth.hpp
|
// OverteAuth.hpp
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#include <cstdint>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <functional>
|
#include <functional>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user