feat(CIE): Implement OIDC RP Service with login, callback, and session management
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
#pragma once
|
||||
|
||||
#include <json/json.h>
|
||||
|
||||
#include <map>
|
||||
#include <optional>
|
||||
#include <string>
|
||||
|
||||
namespace visione::oidc
|
||||
{
|
||||
struct HttpResponseData
|
||||
{
|
||||
int statusCode{0};
|
||||
std::string body;
|
||||
std::map<std::string, std::string> headers;
|
||||
};
|
||||
|
||||
HttpResponseData httpGet(const std::string &url, double timeoutSeconds = 5.0);
|
||||
HttpResponseData httpGet(const std::string &url,
|
||||
const std::map<std::string, std::string> &headers,
|
||||
double timeoutSeconds = 5.0);
|
||||
HttpResponseData httpPostForm(const std::string &url,
|
||||
const std::map<std::string, std::string> ¶ms,
|
||||
double timeoutSeconds = 5.0);
|
||||
Json::Value parseJsonResponse(const HttpResponseData &response);
|
||||
} // namespace visione::oidc
|
||||
Reference in New Issue
Block a user