diff options
| author | Stefan Boberg <[email protected]> | 2023-05-02 10:01:47 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-05-02 10:01:47 +0200 |
| commit | 075d17f8ada47e990fe94606c3d21df409223465 (patch) | |
| tree | e50549b766a2f3c354798a54ff73404217b4c9af /zenserver/auth/authmgr.h | |
| parent | fix: bundle shouldn't append content zip to zen (diff) | |
| download | zen-075d17f8ada47e990fe94606c3d21df409223465.tar.xz zen-075d17f8ada47e990fe94606c3d21df409223465.zip | |
moved source directories into `/src` (#264)
* moved source directories into `/src`
* updated bundle.lua for new `src` path
* moved some docs, icon
* removed old test trees
Diffstat (limited to 'zenserver/auth/authmgr.h')
| -rw-r--r-- | zenserver/auth/authmgr.h | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/zenserver/auth/authmgr.h b/zenserver/auth/authmgr.h deleted file mode 100644 index 054588ab9..000000000 --- a/zenserver/auth/authmgr.h +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright Epic Games, Inc. All Rights Reserved. - -#pragma once - -#include <zencore/crypto.h> -#include <zencore/iobuffer.h> -#include <zencore/string.h> - -#include <chrono> -#include <filesystem> -#include <memory> - -namespace zen { - -struct AuthConfig -{ - std::filesystem::path RootDirectory; - std::chrono::seconds UpdateInterval{30}; - AesKey256Bit EncryptionKey; - AesIV128Bit EncryptionIV; -}; - -class AuthMgr -{ -public: - virtual ~AuthMgr() = default; - - struct AddOpenIdProviderParams - { - std::string_view Name; - std::string_view Url; - std::string_view ClientId; - }; - - virtual void AddOpenIdProvider(const AddOpenIdProviderParams& Params) = 0; - - struct AddOpenIdTokenParams - { - std::string_view ProviderName; - std::string_view RefreshToken; - }; - - virtual bool AddOpenIdToken(const AddOpenIdTokenParams& Params) = 0; - - struct OpenIdAccessToken - { - std::string AccessToken; - std::chrono::system_clock::time_point ExpireTime{}; - }; - - virtual OpenIdAccessToken GetOpenIdAccessToken(std::string_view ProviderName) = 0; - - static std::unique_ptr<AuthMgr> Create(const AuthConfig& Config); -}; - -} // namespace zen |