File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,13 @@ let authToken: AuthorizationToken;
4242
4343// auth flow: response with URL to redirect to Medicare.gov beneficiary login
4444app . get ( "/api/authorize/authurl" , ( req : Request , res : Response ) => {
45- res . send ( bb . generateAuthorizeUrl ( authData ) ) ;
45+ // for SMART App v2 scopes usage: explicitly
46+ // provide query parameter scope=<v2 scopes>
47+ // where <v2 scopes> is space delimited v2 scope specs (url encoded)
48+ // e.g. patient/ExplanationOfBenefit.rs
49+ const redirectUrl = bb . generateAuthorizeUrl ( authData ) +
50+ "&scope=patient%2FExplanationOfBenefit.rs"
51+ res . send ( redirectUrl ) ;
4652} ) ;
4753
4854// auth flow: oauth2 call back
Original file line number Diff line number Diff line change 4545 ],
4646 "dependencies" : {
4747 "@types/express" : " ^4.17.14" ,
48- "cms-bluebutton-sdk" : " ^1.0.2 " ,
48+ "cms-bluebutton-sdk" : " ^1.0.4 " ,
4949 "express" : " ^4.18.2" ,
5050 "ts-node" : " ^10.9.1" ,
5151 "typescript" : " ^4.9.3"
You can’t perform that action at this time.
0 commit comments