• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

jwag956 / flask-security / 219 / 1
97%
master: 97%

Build:
DEFAULT BRANCH: master
Ran 10 Jun 2019 10:07PM UTC
Files 22
Run time 2s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

10 Jun 2019 10:02PM UTC coverage: 94.309% (+1.0%) from 93.292%
REQUIREMENTS=lowest

push

travis-ci

web-flow
feature: Improve 2FA (#101)

A rather large refactor with 2 main goals:

1) remove sending personal info as part of initialization during signup
2) implement opt-in in addition to 2FA required mode.

While the basic flow and forms didn't change - there were many changes:

- A new configuration variable SECURITY_TWO_FACTOR_REQUIRED (default False)
  If you want old behavior of requiring 2FA - this must be set.
- Contents of session cookie are completely different.
- CHANGED: Signal names:
   - 'user-two-factored' -> 'tf_code_confirmed'
   - 'two_factor_method_changed' -> 'tf_profile_changed'
- 2 New signals introduced: 'tf_disabled' and 'tf_security_token_sent'
- Code for most 2FA views changed dramatically, however the actual flow
  should be compatible.
- CHANGE: if call /tf-setup and haven't re-confirmed password - now redirect to
  two_factor_confirm_url rather than login_url.
- CHANGED: as part of naming rationalization - the context processor names changed:
   - two_factor_change_method_password_confirmation_context_processor -> tf_password_verify_context_processor
   - two_factor_setup_context_processor -> tf_setup_context_processor
   - two_factor_token_validation_context_processor -> tf_token_validation_context_processor

Various bugs and doc improvements:

- The two factor _VALIDITY configuration variables were fixed to reflect prior changes
  which meant these values are now in seconds.
- A new message TWO_FACTOR_DISABLED was introduced

Testing Improvements:

- view_scaffold.py was introduced that makes it easy to test forms. This is a real
  Flask application that can be run, and using a normal browser can interact with
  various workflows.

1823 of 1933 relevant lines covered (94.31%)

0.94 hits per line

Source Files on job 219.1 (REQUIREMENTS=lowest)
  • Tree
  • List 0
  • Changed 6
  • Source Changed 6
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 196
  • Travis Job 219.1
  • c8d7adb6 on github
  • Prev Job for REQUIREMENTS=lowest on master (#216.1)
  • Next Job for REQUIREMENTS=lowest on master (#221.3)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc