diff options
| author | Per Larsson <[email protected]> | 2022-02-03 13:32:27 +0100 |
|---|---|---|
| committer | Per Larsson <[email protected]> | 2022-02-03 13:32:27 +0100 |
| commit | 1bf13f3c7ac64d44e13de0dcaf51036640232c8f (patch) | |
| tree | a66a643a6d81cb707eec56f87dda4e0fd893cce2 /zenserver/auth/authmgr.h | |
| parent | Encrypt serialized auth state. (diff) | |
| download | zen-1bf13f3c7ac64d44e13de0dcaf51036640232c8f.tar.xz zen-1bf13f3c7ac64d44e13de0dcaf51036640232c8f.zip | |
Added AES encryption key/IV cli options.
Diffstat (limited to 'zenserver/auth/authmgr.h')
| -rw-r--r-- | zenserver/auth/authmgr.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/zenserver/auth/authmgr.h b/zenserver/auth/authmgr.h index 355c25cc9..9695b4366 100644 --- a/zenserver/auth/authmgr.h +++ b/zenserver/auth/authmgr.h @@ -1,5 +1,6 @@ // Copyright Epic Games, Inc. All Rights Reserved. +#include <zencore/iobuffer.h> #include <zencore/string.h> #include <chrono> @@ -39,10 +40,19 @@ public: virtual OpenIdAccessToken GetOpenIdAccessToken(std::string_view ProviderName) = 0; }; +struct AuthEncryptionKey +{ + IoBuffer Key; + IoBuffer IV; + + static AuthEncryptionKey Default(); +}; + struct AuthConfig { std::filesystem::path RootDirectory; std::chrono::seconds UpdateInterval{30}; + AuthEncryptionKey EncryptionKey; }; std::unique_ptr<AuthMgr> MakeAuthMgr(const AuthConfig& Config); |