Skip to content

Commit

Permalink
Change Brute Force Error Message (#709)
Browse files Browse the repository at this point in the history
  • Loading branch information
DominickBattistini committed Apr 18, 2024
1 parent ede4657 commit 982b348
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/Auth0.Core.UnitTests/RateLimitApiExceptionTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ public void Should_deserialize_api_error_like_brute_force_response_from_auth_api
var response = CreateResponseMessage(
@"{
""error"": ""too_many_attempts"",
""error_description"": ""Your account has been blocked after multiple consecutive login attempts. We've sent you an email with instructions on how to unblock it.""
""error_description"": ""Your account has been blocked after multiple consecutive login attempts. We've sent you a notification via your preferred contact method with instructions on how to unblock it.""
}");

var actual = RateLimitApiException.CreateAsync(response).GetAwaiter().GetResult();

actual.ApiError.Error.Should().BeEquivalentTo("too_many_attempts");
actual.ApiError.Message.Should().BeEquivalentTo("Your account has been blocked after multiple consecutive login attempts. We've sent you an email with instructions on how to unblock it.");
actual.ApiError.Message.Should().BeEquivalentTo("Your account has been blocked after multiple consecutive login attempts. We've sent you a notification via your preferred contact method with instructions on how to unblock it.");
}

[Fact]
Expand Down

0 comments on commit 982b348

Please sign in to comment.