Skip to content
This repository has been archived by the owner on Dec 14, 2018. It is now read-only.

Return BadRequest response when antiforgery token validation fails #3884

Merged
merged 1 commit into from
Jan 8, 2016

Conversation

ajaybhargavb
Copy link
Contributor

static ValidateAntiforgeryTokenAuthorizationFilterLoggerExtensions()
{
_antiforgeryTokenInvalid = LoggerMessage.Define<string>(
LogLevel.Error,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if this should be Error.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Info IMO. I think that's the level we use for authentication failures.

@rynowak
Copy link
Member

rynowak commented Jan 7, 2016

Tests? I'd really expect this to impact existing functional tests. If we don't have unit test coverage, then add it. ⌚

@ajaybhargavb
Copy link
Contributor Author

🆙 📅

@rynowak
Copy link
Member

rynowak commented Jan 8, 2016

:shipit:

@ajaybhargavb ajaybhargavb force-pushed the antiforgery-badrequest branch from 21659fa to bf1fcf6 Compare January 8, 2016 18:50
@ajaybhargavb ajaybhargavb merged commit bf1fcf6 into dev Jan 8, 2016
@ajaybhargavb ajaybhargavb deleted the antiforgery-badrequest branch January 8, 2016 18:51
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants