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

ARXIVNG-1920 added AUTH_UPDATED_SESSION_REF to support renaming request.session to .auth #36

Merged
merged 3 commits into from
Feb 28, 2019

Conversation

erickpeirson
Copy link
Contributor

The auth middleware in arxiv.users package hands the authenticated session on flask.session, which clobbers the built-in Flask session interface. This is a design flaw that's blocking other work.

Starting with v0.3.1, set AUTH_UPDATED_SESSION_REF=True in your application config to rename request.session to request.auth. request.auth will be the default name for the authenticated session starting in v0.4.1.

@erickpeirson erickpeirson requested a review from mhl10 February 28, 2019 16:41
Copy link
Contributor

@mhl10 mhl10 left a comment

Choose a reason for hiding this comment

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

Looks good. Deprecation warning is appreciated!

@erickpeirson erickpeirson merged commit ff21f4b into develop Feb 28, 2019
@erickpeirson erickpeirson deleted the bug/ARXIVNG-1920 branch May 24, 2019 17:50
ntai-arxiv pushed a commit that referenced this pull request Aug 27, 2024
ARXIVNG-1920 added AUTH_UPDATED_SESSION_REF to support renaming request.session to .auth
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