diff --git a/server/Dockerfile b/server/Dockerfile index 161dc3b..984c9dd 100644 --- a/server/Dockerfile +++ b/server/Dockerfile @@ -20,4 +20,5 @@ RUN if [ "$BUILD_DEVELOPMENT" = "True" ]; then \ fi RUN pipenv lock +RUN pip install click RUN pipenv install --system --deploy --ignore-pipfile diff --git a/server/app.py b/server/app.py index 430ffcd..bd2d17c 100644 --- a/server/app.py +++ b/server/app.py @@ -35,7 +35,12 @@ @app.route('/api/authorize/authurl', methods=['GET']) def get_auth_url(): - redirect_url = bb.generate_authorize_url(auth_data) + # for SMART App v2 scopes usage: explicitly + # provide query parameter scope= + # where is space delimited v2 scope specs (url encoded) + # e.g. patient/ExplanationOfBenefit.rs + redirect_url = (bb.generate_authorize_url(auth_data) + + "&scope=patient%2FExplanationOfBenefit.s") return redirect_url