mirror of
https://github.com/LibreOffice/online.git
synced 2025-07-25 16:04:48 +00:00
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:
@ -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;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user