Skip to content

Commit

Permalink
properly time out when waiting on the browser
Browse files Browse the repository at this point in the history
  • Loading branch information
cfbao committed Oct 21, 2024
1 parent e8c5942 commit cafea95
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/D2L.Bmx/OktaAuthenticator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ DssoAuthOptions options

using var cancellationTokenSource = new CancellationTokenSource( TimeSpan.FromSeconds( 15 ) );
var sessionIdTcs = new TaskCompletionSource<string?>( TaskCreationOptions.RunContinuationsAsynchronously );
cancellationTokenSource.Token.Register( () => sessionIdTcs.TrySetCanceled() );
string? sessionId = null;

try {
Expand Down

0 comments on commit cafea95

Please sign in to comment.