don't use ssl key file for admin console auth, use a generated key instead

Change-Id: I424afe0184a64b7f069d896bde6941e42b7b5531
rational: setup is easier in case, when user does not use ssl in loolwsd config
Reviewed-on: https://gerrit.libreoffice.org/61076
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
This commit is contained in:
Andras Timar
2018-09-28 11:54:20 +02:00
parent c745732ac7
commit 2d62529359
5 changed files with 8 additions and 11 deletions

View File

@ -73,11 +73,10 @@ public:
class JWTAuth : public AuthBase
{
public:
JWTAuth(const std::string& keyPath, const std::string& name, const std::string& sub, const std::string& aud)
JWTAuth(const std::string& name, const std::string& sub, const std::string& aud)
: _name(name),
_sub(sub),
_aud(aud),
_key(Poco::Crypto::RSAKey("", keyPath)),
_digestEngine(_key, "SHA256")
{
}
@ -100,7 +99,7 @@ private:
const std::string _sub;
const std::string _aud;
const Poco::Crypto::RSAKey _key;
static const Poco::Crypto::RSAKey _key;
Poco::Crypto::RSADigestEngine _digestEngine;
};