Skip to content
This repository has been archived by the owner on Nov 19, 2024. It is now read-only.

Commit

Permalink
Fix breaking test
Browse files Browse the repository at this point in the history
  • Loading branch information
josephdecock committed Nov 27, 2023
1 parent 7fcf3de commit b692099
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,8 @@ public async Task StoreTokenAsync(
var dpopKeyName = NamePrefixAndResourceSuffix(DPoPKeyName, parameters);
var expiresName = NamePrefixAndResourceSuffix("expires_at", parameters);

// Note that we are not including the the resource suffix because there is no per-resource refresh token
// Note that we are not including the resource suffix because there
// is no per-resource refresh token
var refreshTokenName = NamePrefix(OpenIdConnectParameterNames.RefreshToken);

if (AppendChallengeSchemeToTokenNames(parameters))
Expand All @@ -215,10 +216,7 @@ public async Task StoreTokenAsync(

if (token.RefreshToken != null)
{
if (!result.Properties.UpdateTokenValue(refreshTokenName, token.RefreshToken))
{
result.Properties.Items[$"{TokenPrefix}{refreshTokenName}"] = token.RefreshToken;
}
result.Properties.Items[refreshTokenName] = token.RefreshToken;
}

var options = _contextAccessor!.HttpContext!.RequestServices.GetRequiredService<IOptionsMonitor<CookieAuthenticationOptions>>();
Expand Down

0 comments on commit b692099

Please sign in to comment.