Skip to content

Commit

Permalink
oauth2: minor code cleanup
Browse files Browse the repository at this point in the history
Signed-off-by: Adi Suissa-Peleg <[email protected]>
  • Loading branch information
adisuissa committed Jun 18, 2024
1 parent a93137d commit c020c17
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 c020c17

Please sign in to comment.