Tokens can be cached beyond the lifetime of the (http) transport. (#834)

This commit is contained in:
Manuel Naujoks 2025-11-25 02:56:56 +01:00 • committed by GitHub
commit 820821fa0c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -42,7 +42,7 @@ public sealed class Program
// Track if we've already issued an already-expired token for the CanAuthenticate_WithTokenRefresh test which uses the test-refresh-client registration.
public bool HasIssuedExpiredToken { get; set; }
public bool HasIssuedRefreshToken { get; set; }
public bool HasRefreshedToken { get; set; }
/// <summary>
/// Entry point for the application.
@ -368,7 +368,7 @@ public sealed class Program
_tokens.TryRemove(refresh_token, out _);
}
HasIssuedRefreshToken = true;
HasRefreshedToken = true;
return Results.Ok(response);
}
else