Mercurial > hg > orthanc
diff PalantirServer/main.cpp @ 25:dd1489098265
basic http authentication
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 28 Aug 2012 11:20:49 +0200 |
parents | 62bd05fe4b7c |
children | 6ba765ecf3db |
line wrap: on
line diff
--- a/PalantirServer/main.cpp Tue Aug 28 10:42:43 2012 +0200 +++ b/PalantirServer/main.cpp Tue Aug 28 11:20:49 2012 +0200 @@ -123,6 +123,9 @@ MongooseServer httpServer; httpServer.SetPort(GetGlobalIntegerParameter("HttpPort", 8000)); + httpServer.SetAuthenticationEnabled(GetGlobalBoolParameter("AuthenticationEnabled", false)); + SetupRegisteredUsers(httpServer); + if (GetGlobalBoolParameter("SslEnabled", false)) { std::string certificate = GetGlobalStringParameter("SslCertificate", "certificate.pem");