api-snippets
api-snippets copied to clipboard
C# ValidateTwilioRequestAttribute check flipped?
Perhaps I'm misunderstanding, but this line: https://github.com/TwilioDevEd/api-snippets/blob/2855c5c8215dbb5ce30f0fe19368aed22d7767bb/guides/request-validation-csharp-core/example-3/example-3.cs#L32
Shouldn't that be if (!IsValidRequest(context.Request) && !IsTestEnvironment)
? If the request is not valid and we're not in the test environment, then give the 403.