Merged
Conversation
Following the guide in the docs to make this work - http://flask.pocoo.org/docs/0.12/patterns/packages/ Run dev server with: ``` export FLASK_APP=hermes_api pip install -e . flask run -h 0.0.0.0 ``` * unnest project structure by 1 * add `setup.py` to root of project * make imports in `__init__.py` relative * upgrade to flask 0.12 * add `dev.sh` with commands listed above
appease the new plugins
Upgrade to Python 3.7, add flake8-quotes and flake8-import-order [EVEREST-439] Approved-by: Matt Fisher <matt.fisher@nsidc.org>
more mypy Approved-by: Michael Brandt <michael.brandt@nsidc.org>
The webserver provides a header, save it to app.config
EVEREST-430 apiv4 Approved-by: Matt Fisher <matt.fisher@nsidc.org>
EVEREST-382 script interface fixes Approved-by: Michael Brandt <michael.brandt@nsidc.org>
EVEREST-382 script interface Approved-by: Michael Brandt <michael.brandt@nsidc.org>
EVEREST-382 PythonScript Approved-by: Michael Brandt <michael.brandt@nsidc.org> Approved-by: Matt Fisher <matt.fisher@nsidc.org>
HERMES-72 apache proxy
* fix adding earthdata user to db--when a new user authenticates for the first time
* save dead link with the wayback machine
* upgrade flask-restplus to v0.13.0, use patch for basePath issue
see noirbizarre/flask-restplus#755 for more details on
the basePath issue
* changelog [ci skip]
* don't lint the flask-restplus workaround code
Approved-by: Michael Brandt <michael.brandt@nsidc.org>
Still not working quite as I expect...the swagger page that loads expects things to live at the root, and doesn't understand it's behind a proxy.
This allows redirects to correctly understand that they are behind a proxy with additional path components that the application wouldn't otherwise know about.
Utilized while setting up proxy rules
* Remove the trailing shalsh from auth endpoints, to be consistent with `get-links`. This is also standard for endpoints that accept query parameters and do not represent a collection. * Rename auth finish -> callback. Resolves TODO.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
auth_finish/callback endpoint toauth_callback