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

MITLibraries / alma-sapinvoices-ui / 10497266876
87%

Build:
DEFAULT BRANCH: main
Ran 21 Aug 2024 08:50PM UTC
Jobs 1
Files 9
Run time 1min
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

21 Aug 2024 08:48PM UTC coverage: 85.205% (-1.6%) from 86.76%
10497266876

push

github

web-flow
Use Flask-Login for user session management (#60)

Why these changes are being introduced:
* The Application Load Balancer (ALB) that manages
authentication and authorization provides an access token
and user claims (info about user) in the request headers
routed to its target, the Flask app. With Flask-Login,
this data can be used to identify the 'current_user'
on the app and detect when a session may be stale.

How this addresses that need:
* Implement 'request_loader' callback method
* Add utility method to parse OIDC data from request headers
* Add 'User' class
* Add 'logout' view
* Decorate views using 'login_required'
* Add env var 'AWS_DEFAULT_REGION'
* Add env var 'LOGIN_DISABLED' to optionally turn off the
login (ignore 'login_required' decorator) for testing and development
* Add unit tests
* Add env var application configuration variable LOGIN_DISABLED
is a convenient method to globally turn off the login method
(i.e., parsing OIDC data from header) for purposes of
unit testing and running the app in Dev1 (ALB is turned off for Dev1).

Side effects of this change:
* None

Relevant ticket(s):
* https://mitlibraries.atlassian.net/browse/IN-1033

66 of 82 new or added lines in 3 files covered. (80.49%)

311 of 365 relevant lines covered (85.21%)

0.85 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
4
91.25
-4.27% webapp/config.py
5
44.44
21.37% webapp/utils/__init__.py
7
69.23
21.73% webapp/app.py
Jobs
ID Job ID Ran Files Coverage
1 10497266876.1 21 Aug 2024 08:50PM UTC 9
85.21
GitHub Action Run
Source Files on build 10497266876
  • Tree
  • List 9
  • Changed 3
  • Source Changed 3
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #10497266876
  • 4e07259c on github
  • Prev Build on main (#10425222108)
  • Next Build on main (#10515398903)
  • Delete
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