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

jwag956 / flask-security / 219
97%

Build:
DEFAULT BRANCH: master
Ran 10 Jun 2019 10:06PM UTC
Jobs 10
Files 22
Run time 9min
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

pending completion
219

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.

132 of 132 new or added lines in 5 files covered. (100.0%)

1822 of 1932 relevant lines covered (94.31%)

9.43 hits per line

Jobs
ID Job ID Ran Files Coverage
1 219.1 (REQUIREMENTS=lowest) 10 Jun 2019 10:07PM UTC 0
94.31
Travis Job 219.1
2 219.2 (REQUIREMENTS=lowest) 10 Jun 2019 10:06PM UTC 0
94.31
Travis Job 219.2
3 219.3 (REQUIREMENTS=lowest) 10 Jun 2019 10:06PM UTC 0
94.31
Travis Job 219.3
4 219.4 (REQUIREMENTS=lowest) 10 Jun 2019 10:06PM UTC 0
94.31
Travis Job 219.4
5 219.5 (REQUIREMENTS=release) 10 Jun 2019 10:07PM UTC 0
97.91
Travis Job 219.5
6 219.6 (REQUIREMENTS=release) 10 Jun 2019 10:09PM UTC 0
97.9
Travis Job 219.6
7 219.7 (REQUIREMENTS=release) 10 Jun 2019 10:09PM UTC 0
97.9
Travis Job 219.7
8 219.8 (REQUIREMENTS=release) 10 Jun 2019 10:12PM UTC 0
97.9
Travis Job 219.8
9 219.9 (REQUIREMENTS=lowest) 10 Jun 2019 10:14PM UTC 0
94.31
Travis Job 219.9
10 219.10 (REQUIREMENTS=release) 10 Jun 2019 10:15PM UTC 0
97.91
Travis Job 219.10
Source Files on build 219
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #219
  • c8d7adb6 on github
  • Prev Build on master (#216)
  • Next Build on master (#221)
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