diff options
| author | Per Larsson <[email protected]> | 2022-01-28 13:03:44 +0100 |
|---|---|---|
| committer | Per Larsson <[email protected]> | 2022-01-28 13:03:44 +0100 |
| commit | c775f3f39bc2a3d8c018c3a925a7cd61231ef3a9 (patch) | |
| tree | 152399c6b8aa05e51107801431c65a938e0a788f /zenserver/upstream/upstreamservice.cpp | |
| parent | Extended auth mgr to restore OpenID provider(s) and token(s). (diff) | |
| download | zen-c775f3f39bc2a3d8c018c3a925a7cd61231ef3a9.tar.xz zen-c775f3f39bc2a3d8c018c3a925a7cd61231ef3a9.zip | |
Get access token from auth mgr.
Diffstat (limited to 'zenserver/upstream/upstreamservice.cpp')
| -rw-r--r-- | zenserver/upstream/upstreamservice.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/zenserver/upstream/upstreamservice.cpp b/zenserver/upstream/upstreamservice.cpp index 1cfd1df85..c8176779e 100644 --- a/zenserver/upstream/upstreamservice.cpp +++ b/zenserver/upstream/upstreamservice.cpp @@ -1,9 +1,11 @@ // Copyright Epic Games, Inc. All Rights Reserved. +#include <auth/authmgr.h> #include <upstream/jupiter.h> #include <upstream/upstreamcache.h> #include <upstream/upstreamservice.h> #include <upstream/zen.h> + #include <zencore/compactbinarybuilder.h> #include <zencore/string.h> @@ -64,7 +66,7 @@ namespace { } } // namespace -HttpUpstreamService::HttpUpstreamService(UpstreamCache& Upstream) : m_Upstream(Upstream) +HttpUpstreamService::HttpUpstreamService(UpstreamCache& Upstream, AuthMgr& Mgr) : m_Upstream(Upstream), m_AuthMgr(Mgr) { m_Router.RegisterRoute( "endpoints", @@ -179,7 +181,7 @@ HttpUpstreamService::HttpUpstreamService(UpstreamCache& Upstream) : m_Upstream(U .OAuthSecret = OAuthSecret, .AccessToken = OAuthToken}; - Endpoint = zen::MakeJupiterUpstreamEndpoint(Options); + Endpoint = zen::MakeJupiterUpstreamEndpoint(Options, m_AuthMgr); } m_Upstream.RegisterEndpoint(std::move(Endpoint)); |