Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make annotating the transaction with user optional #36

Merged
merged 1 commit into from
May 20, 2015

Conversation

dstufft
Copy link
Contributor

@dstufft dstufft commented May 9, 2015

In Warehouse I have the the AuthenticationPolicy's adding a Vary: Cookie so that any access to the user ensures that we make the response varied by cookie. We do this because we assume that if you're accessing the user you're going to do something different based on that information and we need to vary it.

This however doesn't work because pyramid_tm assumes it can access request.unauthenticated_user on every request to annotate the transaction with a particular user. I don't believe I need this functionality in Warehouse so I'd love a knob to turn off that behavior.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants