olin-build / ABE

Amorphous Blob of Events
https://abe.olin.build/
GNU Affero General Public License v3.0
7 stars 1 forks source link

Flask debug mode and sessions; OAuth scopes #260

Closed osteele closed 6 years ago

osteele commented 6 years ago

Remove flask-socketio. This enables the server to run in development (debug) mode.

You may need to run pipenv uninstall.

New script ./scripts/server runs just the Flask app, in dev mode.

The /login and /logout test pages uses remember the user auth in the Flask session. This allows them to be used in conjunction with the interactive docs.

/accounts returns an OAuth scope, as well as (now-deprecated) permissions.

codecov[bot] commented 6 years ago

Codecov Report

Merging #260 into dev will decrease coverage by 0.19%. The diff coverage is 81.57%.

Impacted file tree graph

@@            Coverage Diff            @@
##              dev     #260     +/-   ##
=========================================
- Coverage   68.23%   68.03%   -0.2%     
=========================================
  Files          25       25             
  Lines        1294     1361     +67     
=========================================
+ Hits          883      926     +43     
- Misses        411      435     +24
Impacted Files Coverage Δ
abe/resource_models/subscription_resources.py 45.71% <100%> (ø) :arrow_up:
abe/resource_models/ics_resources.py 79.41% <100%> (ø) :arrow_up:
abe/resource_models/account_resources.py 100% <100%> (ø) :arrow_up:
abe/app.py 75.8% <40%> (-6.02%) :arrow_down:
abe/auth/__init__.py 95.23% <95.83%> (-0.85%) :arrow_down:
abe/resource_models/event_resources.py 64.36% <0%> (-0.72%) :arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update d9877ea...0d11bdd. Read the comment docs.