Skip to content
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion server/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
ERR_MISSING_AUTH_CODE = "Response was missing access code!"
ERR_MISSING_STATE = "State is required when using PKCE"

app = Flask(__name__)
bb = BlueButton()


Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this bit a duplicate?

app = Flask(__name__)
bb = BlueButton()

Expand All @@ -35,7 +39,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=<v2 scopes>
# where <v2 scopes> is space delimited v2 scope specs (url encoded)
# e.g. patient/ExplanationOfBenefit.rs
redirect_url = (bb.generate_authorize_url(auth_data)
+ "&scope=patient%2FExplanationOfBenefit.rs")
return redirect_url


Expand Down