Mercurial > hg > orthanc
comparison OrthancServer/OrthancRestApi/OrthancRestSystem.cpp @ 3534:cac8ffcb9cef
forcing AuthenticationEnabled to false is considered as insecure if remote access is allowed
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 04 Oct 2019 19:16:12 +0200 |
parents | 2090ec6a83a5 |
children | 41365091a41e |
comparison
equal
deleted
inserted
replaced
3533:2090ec6a83a5 | 3534:cac8ffcb9cef |
---|---|
58 Json::Value result = Json::objectValue; | 58 Json::Value result = Json::objectValue; |
59 | 59 |
60 result["ApiVersion"] = ORTHANC_API_VERSION; | 60 result["ApiVersion"] = ORTHANC_API_VERSION; |
61 result["Version"] = ORTHANC_VERSION; | 61 result["Version"] = ORTHANC_VERSION; |
62 result["DatabaseVersion"] = OrthancRestApi::GetIndex(call).GetDatabaseVersion(); | 62 result["DatabaseVersion"] = OrthancRestApi::GetIndex(call).GetDatabaseVersion(); |
63 result["IsDefaultUser"] = context.IsDefaultUser(); // New in Orthanc 1.5.8 | 63 result["IsHttpServerSecure"] = context.IsHttpServerSecure(); // New in Orthanc 1.5.8 |
64 | 64 |
65 { | 65 { |
66 OrthancConfiguration::ReaderLock lock; | 66 OrthancConfiguration::ReaderLock lock; |
67 result["DicomAet"] = lock.GetConfiguration().GetStringParameter("DicomAet", "ORTHANC"); | 67 result["DicomAet"] = lock.GetConfiguration().GetStringParameter("DicomAet", "ORTHANC"); |
68 result["DicomPort"] = lock.GetConfiguration().GetUnsignedIntegerParameter("DicomPort", 4242); | 68 result["DicomPort"] = lock.GetConfiguration().GetUnsignedIntegerParameter("DicomPort", 4242); |