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

MITLibraries / alma-sapinvoices-ui / 10497266876 / 1
87%
main: 87%

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

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

311 of 365 relevant lines covered (85.21%)

0.85 hits per line

Source Files on job 10497266876.1
  • Tree
  • List 0
  • Changed 3
  • Source Changed 3
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 10497266876
  • 4e07259c on github
  • Prev Job for on main (#10425222108.1)
  • Next Job for on main (#10515398903.1)
  • 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