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

jwag956 / flask-security / 182
97%

Build:
DEFAULT BRANCH: master
Ran 27 May 2019 02:00PM UTC
Jobs 9
Files 21
Run time 6min
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
182

push

travis-ci

web-flow
feature - Support Json/Single-Page-Applications (#81)

Reset Password, passwordless login, and confirmation did not support SPA/json since
those three had confirmation links that only returned redirects or forms. SPAs need to get control
of all redirects and have the appropriate context. Three new 'views' are available:
RESET_VIEW, RESET_ERROR_VIEW, and LOGIN_ERROR_VIEW to enable easy routing within the UI.

This change introduces a new config variable - SECURITY_REDIRECT_BEHAVIOR which will change those redirects to SPA-friendly
redirects. A new overridable UserMixin method - get_redirect_qparams allows for customizing precisely what
query arguments are sent via the redirect.
By default of course the existing form-based redirects are done.

A new configuration variable - REDIRECT_HOST can be used during development to force redirects to a different netloc
useful when the UI is running separately (e.g. via npm).

Continued to improve the openapi.yaml file to document these changes

Improved unit tests by:
1) verifying 'flashes' - for json/SPA - we don't want any.
2) improve performance by not using bcrypt for login tokens during testing.

1514 of 1602 relevant lines covered (94.51%)

8.5 hits per line

Jobs
ID Job ID Ran Files Coverage
1 182.1 (REQUIREMENTS=lowest) 27 May 2019 02:00PM UTC 0
94.51
Travis Job 182.1
2 182.2 (REQUIREMENTS=lowest) 27 May 2019 02:00PM UTC 0
94.44
Travis Job 182.2
3 182.3 (REQUIREMENTS=lowest) 27 May 2019 02:00PM UTC 0
94.44
Travis Job 182.3
4 182.4 (REQUIREMENTS=lowest) 27 May 2019 02:00PM UTC 0
94.44
Travis Job 182.4
5 182.5 (REQUIREMENTS=release) 27 May 2019 02:00PM UTC 0
94.51
Travis Job 182.5
6 182.6 (REQUIREMENTS=release) 27 May 2019 02:03PM UTC 0
94.44
Travis Job 182.6
7 182.7 (REQUIREMENTS=release) 27 May 2019 02:03PM UTC 0
94.44
Travis Job 182.7
9 182.9 (REQUIREMENTS=lowest) 27 May 2019 02:06PM UTC 0
94.44
Travis Job 182.9
10 182.10 (REQUIREMENTS=release) 27 May 2019 02:06PM UTC 0
94.44
Travis Job 182.10
Source Files on build 182
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #182
  • 9e26249b on github
  • Prev Build on master (#179)
  • Next Build on master (#185)
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