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

jwag956 / flask-security
94%
master: 97%

Build:
Build:
LAST BUILD BRANCH: gitignore-add-emacs-template
DEFAULT BRANCH: master
Repo Added 21 Apr 2019 11:40PM UTC
Files 28
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

LAST BUILD ON BRANCH 3.3.0rc2
branch: 3.3.0rc2
CHANGE BRANCH
x
Reset
  • 3.3.0rc2
  • 3.0.1
  • 3.0.1-rc1
  • 3.0.1-rc2
  • 3.0.1rc3
  • 3.0.2
  • 3.1.0
  • 3.1.0rc1
  • 3.2.0
  • 3.2.0rc1
  • 3.2.0rc2
  • 3.2.0rc3
  • 3.2.0rc4
  • 3.3.0
  • 3.3.0rc1
  • 3.3.0rc3
  • 3.3.1
  • 3.3.2
  • 3.3.3
  • 3.4.0
  • 3.4.1
  • 302
  • develop
  • master

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

Relevant lines Covered
Build:
Build:
2245 RELEVANT LINES 2111 COVERED LINES
8.46 HITS PER LINE
Source Files on 3.3.0rc2
Detailed source file information is not available for this build.

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
328 3.3.0rc2 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 simpl... push 05 Aug 2019 08:00PM UTC web-flow travis-ci pending completion  
See All Builds (581)
  • Repo 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