Merge lp:~canonical-isd-hackers/canonical-identity-provider/fix952915 into lp:canonical-identity-provider/release
Proposed by
Simon Davy
Status: | Merged |
---|---|
Approved by: | David Owen |
Approved revision: | no longer in the source branch. |
Merged at revision: | 370 |
Proposed branch: | lp:~canonical-isd-hackers/canonical-identity-provider/fix952915 |
Merge into: | lp:canonical-identity-provider/release |
Diff against target: |
201 lines (+63/-31) 4 files modified
identityprovider/decorators.py (+6/-4) identityprovider/tests/unit/test_decorators.py (+34/-13) identityprovider/tests/unit/test_views_devices.py (+15/-0) identityprovider/views/devices.py (+8/-14) |
To merge this branch: | bzr merge lp:~canonical-isd-hackers/canonical-identity-provider/fix952915 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
David Owen (community) | Approve | ||
Review via email: mp+97034@code.launchpad.net |
Commit message
Fixes #953036 by adding a require_twofactor directive to sso_login_required, to allow views to be 2f protected in a standard manner, and then applying as appropriate.
Description of the change
Fixes #953036 by adding a require_twofactor directive to sso_login_required, to allow views to be 2f protected in a standard manner, and then applying as appropriate
Note: device_addition still does the check manually, as it needs to special case for when there are NO devices.
To post a comment you must log in.
#19-22 would be clearer, imo, as:
required = require_twofactor or user_requires_ twofactor. ..
#23: No, not a good place to check the site requirements. The decide view must handle that (and do).