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

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

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

05 Aug 2019 05:34PM UTC coverage: 93.987%. First build
REQUIREMENTS=lowest

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.

2110 of 2245 relevant lines covered (93.99%)

0.94 hits per line

Source Files on job 328.3 (REQUIREMENTS=lowest)
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 301
  • Travis Job 328.3
  • 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