From b22e362ae30b669a02825a13ed2544ae0b9ac649 Mon Sep 17 00:00:00 2001 From: Per Larsson Date: Wed, 2 Feb 2022 09:25:28 +0100 Subject: Parse expire time from OpenID refresh token and added OpenId token provider. --- zenserver/upstream/upstreamcache.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'zenserver/upstream/upstreamcache.cpp') diff --git a/zenserver/upstream/upstreamcache.cpp b/zenserver/upstream/upstreamcache.cpp index 232ed3031..58c025b4f 100644 --- a/zenserver/upstream/upstreamcache.cpp +++ b/zenserver/upstream/upstreamcache.cpp @@ -111,8 +111,6 @@ namespace detail { return {.State = UpstreamEndpointState::kOk}; } - const AuthMgr::OpenIdAccessToken Token = m_AuthMgr.GetOpenIdAccessToken("Okta"); - CloudCacheSession Session(m_Client); const CloudCacheResult Result = Session.Authenticate(); @@ -1415,11 +1413,12 @@ private: if (Status.State == UpstreamEndpointState::kOk) { - ZEN_INFO("health check endpoint '{} - {}' OK", Info.Name, Info.Url); + ZEN_INFO("HEALTH - endpoint '{} - {}' Ok", Info.Name, Info.Url); } else { - ZEN_WARN("health check endpoint '{} - {}' FAILED, reason '{}'", Info.Name, Info.Url, Status.Reason); + const std::string Reason = Status.Reason.empty() ? "" : fmt::format(", reason '{}'", Status.Reason); + ZEN_WARN("HEALTH - endpoint '{} - {}' {} {}", Info.Name, Info.Url, ToString(Status.State), Reason); } } } -- cgit v1.2.3