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

Broken partial auth with Django and 0.1.24 #291

Closed
nijel opened this issue May 28, 2014 · 3 comments
Closed

Broken partial auth with Django and 0.1.24 #291

nijel opened this issue May 28, 2014 · 3 comments

Comments

@nijel
Copy link
Contributor

nijel commented May 28, 2014

Since commit b1fa8bc the partial authentication is broken in Django (at least for my use case). I've tracked down the problem to the fact that response is no longer stored in the session data. This is due to fact that partial_to_session removes it since b1fa8bc as it does filtering on all elements, while before it did that only on the ones being added from kwargs (response was added unfiltered before and now it's filtered).

However I think the broken piece of code is the one documented as "Clean any MergeDict data type from the values", which obviously does not convert the MergeDict to dict and it's then filtered. I'm not sure how to fix this properly as importing Django specific class into generic PSA code does not sound correct.

@nijel
Copy link
Contributor Author

nijel commented May 28, 2014

nijel added a commit to WeblateOrg/weblate that referenced this issue May 28, 2014
See omab/python-social-auth#291

Signed-off-by: Michal Čihař <michal@cihar.com>
@omab
Copy link
Owner

omab commented Jun 7, 2014

@nijel, I've introduced a fix for the issue, could you give it a try?

@omab omab closed this as completed Jun 8, 2014
@nijel
Copy link
Contributor Author

nijel commented Jun 9, 2014

Thanks it seems to work.

nijel added a commit to WeblateOrg/weblate that referenced this issue Jun 9, 2014
0.1.24 - 0.1.26 suffer by
omab/python-social-auth#291

Consequent releases will change API for pipeline and the new API is not
supported by Weblate (and I'm not sure if it will be possible to support
both of them).

Signed-off-by: Michal Čihař <michal@cihar.com>
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

No branches or pull requests

2 participants