Skip to content

Commit

Permalink
oauth2: minor code cleanup (#34800)
Browse files Browse the repository at this point in the history
Signed-off-by: Adi Suissa-Peleg <adip@google.com>
  • Loading branch information
adisuissa committed Jun 20, 2024
1 parent 7bbbc93 commit 538cd8a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions source/extensions/filters/http/oauth2/filter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -669,11 +669,9 @@ void OAuth2Filter::onRefreshAccessTokenFailure() {

void OAuth2Filter::addResponseCookies(Http::ResponseHeaderMap& headers,
const std::string& encoded_token) const {
std::string max_age;
max_age = expires_in_;

// We use HTTP Only cookies.
const std::string cookie_tail_http_only = fmt::format(CookieTailHttpOnlyFormatString, max_age);
const std::string cookie_tail_http_only =
fmt::format(CookieTailHttpOnlyFormatString, expires_in_);
const CookieNames& cookie_names = config_->cookieNames();

headers.addReferenceKey(
Expand Down

0 comments on commit 538cd8a

Please sign in to comment.