Skip to content

Commit

Permalink
Fix POP tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bgavrilMS committed Jul 21, 2023
1 parent 5bd105c commit b20da77
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -535,9 +535,9 @@ private Task VerifyPoPTokenAsync(string clientId, string requestUri, HttpMethod
return VerifyPoPTokenAsync(clientId, requestUri, method, result.AccessToken, result.TokenType);
}

private async Task VerifyPoPTokenAsync(string clientId, string requestUri, HttpMethod method, string token, string tokenType)
private Task VerifyPoPTokenAsync(string clientId, string requestUri, HttpMethod method, string token, string tokenType)
{
Uri protectedUri = new Uri(ProtectedUrl);
Uri protectedUri = new Uri(requestUri);

ClaimsPrincipal popClaims = IdToken.Parse(token).ClaimsPrincipal;
string assertionWithoutShr = popClaims.FindFirst("at").Value;
Expand All @@ -555,7 +555,7 @@ private async Task VerifyPoPTokenAsync(string clientId, string requestUri, HttpM
string reqCnf = innerTokenClaims.FindFirst("cnf").Value;
Assert.IsNotNull(reqCnf);


return Task.Delay(0);
// POP validation endpoint is down
// uncomment code below https://github.com/AzureAD/microsoft-authentication-library-for-dotnet/issues/4264

Expand Down

0 comments on commit b20da77

Please sign in to comment.