File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
test/TestIdPCore/Controllers Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -252,8 +252,8 @@ private Saml2Configuration GetRpSaml2Configuration(RelyingParty relyingParty = n
252252
253253 private async Task < RelyingParty > ValidateRelyingParty ( string issuer )
254254 {
255- using var cancellationTokenSource = new CancellationTokenSource ( 3 * 1000 ) ; // Cancel after 3 seconds.
256- await Task . WhenAll ( settings . RelyingParties . Select ( rp => LoadRelyingPartyAsync ( rp , cancellationTokenSource ) ) ) ;
255+ // Create a cancellation token for each Relying Party call
256+ await Task . WhenAll ( settings . RelyingParties . Select ( rp => LoadRelyingPartyAsync ( rp , new CancellationTokenSource ( 1 * 1000 ) ) ) ) ;
257257
258258 return settings . RelyingParties . Where ( rp => rp . Issuer != null && rp . Issuer . Equals ( issuer , StringComparison . InvariantCultureIgnoreCase ) ) . Single ( ) ;
259259 }
@@ -298,4 +298,4 @@ private IEnumerable<Claim> CreateTestUserClaims(string selectedNameID)
298298 yield return new Claim ( ClaimTypes . Email , $ "{ userId } @someemail.test") ;
299299 }
300300 }
301- }
301+ }
You can’t perform that action at this time.
0 commit comments