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

jwag956 / flask-security / 359
97%

Build:
DEFAULT BRANCH: master
Ran 24 Aug 2019 12:54AM 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
359

push

travis-ci

web-flow
fix - improve performance for auth tokens. (#168)

Turns out the flask-login will call request_loader if there is no session. That in turn
validates the token, does a DB query for the user, and verifies the contents of the token
(this is the expensive hash check).
Then - if an endpoint is decorated with either @auth_token_required or @auth_required,
it will again call request_loader and do it all over again.

This PR add a request-local flag to note that if the token has been verified and the user
looked up - and simply returns the existing user.

Also - after reading more about request and app contexts - decided that this AND the CSRF
flags (which was added a couple PRs ago) should be in the request context, not the app context.

2143 of 2278 relevant lines covered (94.07%)

8.46 hits per line

Jobs
ID Job ID Ran Files Coverage
1 359.1 (REQUIREMENTS=lowest) 24 Aug 2019 12:54AM UTC 0
94.03
Travis Job 359.1
2 359.2 (REQUIREMENTS=lowest) 24 Aug 2019 12:54AM UTC 0
94.03
Travis Job 359.2
3 359.3 (REQUIREMENTS=lowest) 24 Aug 2019 12:55AM UTC 0
94.03
Travis Job 359.3
4 359.4 (REQUIREMENTS=lowest) 24 Aug 2019 12:54AM UTC 0
94.03
Travis Job 359.4
5 359.5 (REQUIREMENTS=release) 24 Aug 2019 12:54AM UTC 0
97.06
Travis Job 359.5
6 359.6 (REQUIREMENTS=release) 24 Aug 2019 12:58AM UTC 0
97.05
Travis Job 359.6
7 359.7 (REQUIREMENTS=release) 24 Aug 2019 12:58AM UTC 0
97.05
Travis Job 359.7
8 359.8 (REQUIREMENTS=release) 24 Aug 2019 01:01AM UTC 0
97.1
Travis Job 359.8
9 359.9 (REQUIREMENTS=lowest) 24 Aug 2019 01:03AM UTC 0
94.03
Travis Job 359.9
Source Files on build 359
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #359
  • 44ba1d94 on github
  • Prev Build on master (#356)
  • Next Build on master (#362)
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