|
|
|
@ -449,7 +449,7 @@ std::string getSessions()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
template<>
|
|
|
|
|
PEP_SESSION from_json(const js::Value& v)
|
|
|
|
|
PEP_SESSION from_json(const js::Value& /* not used */)
|
|
|
|
|
{
|
|
|
|
|
const auto id = std::this_thread::get_id();
|
|
|
|
|
const auto q = session_registry.find( id );
|
|
|
|
@ -866,6 +866,15 @@ bool JsonAdapter::verify_security_token(const std::string& s) const
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void JsonAdapter::augment(json_spirit::Value& value)
|
|
|
|
|
{
|
|
|
|
|
js::Object o = value.get_obj();
|
|
|
|
|
PEP_SESSION session = from_json<PEP_SESSION>(value);
|
|
|
|
|
auto errorstack = get_errorstack(session);
|
|
|
|
|
o.emplace_back( "errorstack", to_json(errorstack) );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void JsonAdapter::registerEventListener(const std::string& address, unsigned port, const std::string& securityContext)
|
|
|
|
|
{
|
|
|
|
|
const auto key = std::make_pair(address, port);
|
|
|
|
|