Skip to content
This repository has been archived by the owner on Feb 22, 2024. It is now read-only.

Allow password validation against legacy non-HMAC encrypted passwords. #324

Closed
wants to merge 17 commits into from

Conversation

danpat
Copy link

@danpat danpat commented Oct 5, 2014

This is to address #320 where it's difficult to validate against an old password database that hasn't had the passwords HMAC'd before encrypting.

danpat and others added 17 commits June 5, 2014 22:33
If a user goes directly to /login, the value of 'next' is the empty string in the login form.
This change updates validate_redirect_url() so that the empty string does not validate, and get_post_action_redirect() will fall through as expected to SECURITY_POST_LOGIN_VIEW.
My new Mac OS 10.9 system doesn't include "mock", and it's required for the test suite to run.
Additional code is required to properly initalize pytest-cache when it's installed into a local egg in the current working directory.

Fix from here:

    https://bitbucket.org/hpk42/pytest-cache/issue/8/pytest-cache-plugin-not-loading-when-using

Without this, I get:
.....
running build_ext
usage: setup.py [options] [file_or_dir] [file_or_dir] [...]
setup.py: error: unrecognized arguments: --clearcache
Try passwords first HMACed, then fallback to sans-HMAC if that fails, in order to support legacy encrypted passwords.
@coveralls
Copy link

Coverage Status

Coverage decreased (-8.77%) when pulling e032daa on danpat:develop into 76ad77a on mattupstate:develop.

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

Successfully merging this pull request may close these issues.

None yet

3 participants