Skip to content

Commit

Permalink
Ensure await is using ConfigureAwait (#474)
Browse files Browse the repository at this point in the history
  • Loading branch information
frederikprijck authored Feb 15, 2021
1 parent 9b6df69 commit e11f55b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Auth0.AuthenticationApi/Tokens/IdTokenValidator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public async Task Assert(IdTokenRequirements requirements, string idToken, strin
if (string.IsNullOrWhiteSpace(idToken))
throw new IdTokenValidationException("ID token is required but missing.");

var verifiedToken = await DecodeSignedToken(requirements, idToken, clientSecret);
var verifiedToken = await DecodeSignedToken(requirements, idToken, clientSecret).ConfigureAwait(false);
IdTokenClaimValidator.AssertClaimsMeetRequirements(requirements, verifiedToken, pointInTime ?? DateTime.Now);
}

Expand Down
2 changes: 1 addition & 1 deletion src/Auth0.AuthenticationApi/Tokens/JsonWebKeys.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ static class JsonWebKeys
public static async Task<JsonWebKeySet> GetForIssuer(string issuer)
{
var metadataAddress = new UriBuilder(issuer) { Path = "/.well-known/openid-configuration" }.Uri.OriginalString;
var openIdConfiguration = await GetOpenIdConfiguration(metadataAddress);
var openIdConfiguration = await GetOpenIdConfiguration(metadataAddress).ConfigureAwait(false);
return openIdConfiguration.JsonWebKeySet;
}

Expand Down
2 changes: 1 addition & 1 deletion src/Auth0.Core/Exceptions/ApiException.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public static async Task<ApiException> CreateSpecificExceptionAsync(HttpResponse
case 429:
return RateLimitApiException.Create(response);
default:
return await ErrorApiException.CreateAsync(response);
return await ErrorApiException.CreateAsync(response).ConfigureAwait(false);
}
}
}
Expand Down

0 comments on commit e11f55b

Please sign in to comment.