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

jwag956 / flask-security / 327
97%

Build:
DEFAULT BRANCH: master
Ran 05 Aug 2019 05:39PM UTC
Jobs 9
Files 24
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
327

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 327.1 (REQUIREMENTS=lowest) 05 Aug 2019 05:39PM UTC 0
93.99
Travis Job 327.1
2 327.2 (REQUIREMENTS=lowest) 05 Aug 2019 05:39PM UTC 0
93.99
Travis Job 327.2
3 327.3 (REQUIREMENTS=lowest) 05 Aug 2019 05:39PM UTC 0
93.99
Travis Job 327.3
4 327.4 (REQUIREMENTS=lowest) 05 Aug 2019 05:39PM UTC 0
93.99
Travis Job 327.4
5 327.5 (REQUIREMENTS=release) 05 Aug 2019 05:39PM UTC 0
97.06
Travis Job 327.5
6 327.6 (REQUIREMENTS=release) 05 Aug 2019 05:43PM UTC 0
97.06
Travis Job 327.6
7 327.7 (REQUIREMENTS=release) 05 Aug 2019 05:43PM UTC 0
97.06
Travis Job 327.7
8 327.8 (REQUIREMENTS=release) 05 Aug 2019 05:47PM UTC 0
97.1
Travis Job 327.8
9 327.9 (REQUIREMENTS=lowest) 05 Aug 2019 05:49PM UTC 0
93.99
Travis Job 327.9
Source Files on build 327
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #327
  • 33e7c4fa on github
  • Prev Build on master (#323)
  • Next Build on master (#330)
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