diff 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); |