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

jwag956 / flask-security / 328
94%
master: 97%

Build:
Build:
LAST BUILD BRANCH: gitignore-add-emacs-template
DEFAULT BRANCH: master
Ran 05 Aug 2019 08:00PM UTC
Jobs 9
Files 24
Run time 8min
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
328

push

travis-ci

web-flow
fix/feature - Improve unauthenticated/unauthorized handlers. (#152)

Prior to this, FS had a single unauthorized_handler that was called for both
authentication failures as well as authorization failures. The default
authentication handler simply returned 401 and a static html string. The default
unauthorized handler either redirected to UNAUTHORIZED_VIEW or did an abort(403)

This made FS authentication decorator behavior different than @login_required,
and made it difficult to have a handler for JSON that could differentiate between the 2.

2 new handlers - unauthn_handler and unauthz_handler were added.
unauthorized_handler has been deprecated.
Furthermore, both default handlers look to see if the response should be JSON and calls
render_json - this gives a nice easy hook for applications to have uniform API error responses.

Furthermore, the default unauthn_handler now simply calls login_manager.unauthorized() so
all authentication error handling is uniform.

Added docs, examples, etc.

Fixed bug in POST /logout where render_json wasn't being called.

2111 of 2245 relevant lines covered (94.03%)

8.46 hits per line

Jobs
ID Job ID Ran Files Coverage
1 328.1 (REQUIREMENTS=lowest) 05 Aug 2019 08:00PM UTC 0
93.99
Travis Job 328.1
2 328.2 (REQUIREMENTS=lowest) 05 Aug 2019 08:00PM UTC 0
93.99
Travis Job 328.2
3 328.3 (REQUIREMENTS=lowest) 05 Aug 2019 08:00PM UTC 0
93.99
Travis Job 328.3
4 328.4 (REQUIREMENTS=lowest) 05 Aug 2019 08:00PM UTC 0
93.99
Travis Job 328.4
5 328.5 (REQUIREMENTS=release) 05 Aug 2019 08:00PM UTC 0
97.06
Travis Job 328.5
6 328.6 (REQUIREMENTS=release) 05 Aug 2019 08:04PM UTC 0
97.06
Travis Job 328.6
7 328.7 (REQUIREMENTS=release) 05 Aug 2019 08:04PM UTC 0
97.06
Travis Job 328.7
8 328.8 (REQUIREMENTS=release) 05 Aug 2019 08:08PM UTC 0
97.1
Travis Job 328.8
9 328.9 (REQUIREMENTS=lowest) 05 Aug 2019 08:08PM UTC 0
93.99
Travis Job 328.9
Source Files on build 328
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #328
  • 33e7c4fa on github
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