Tokens can be cached beyond the lifetime of the (http) transport. (#834)
This commit is contained in:
parent
e6db415940
commit
820821fa0c
1 changed files with 538 additions and 373 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue