File tree 2 files changed +8
-2
lines changed
2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,13 @@ let authToken: AuthorizationToken;
42
42
43
43
// auth flow: response with URL to redirect to Medicare.gov beneficiary login
44
44
app . 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 ) ;
46
52
} ) ;
47
53
48
54
// auth flow: oauth2 call back
Original file line number Diff line number Diff line change 45
45
],
46
46
"dependencies" : {
47
47
"@types/express" : " ^4.17.14" ,
48
- "cms-bluebutton-sdk" : " ^1.0.2 " ,
48
+ "cms-bluebutton-sdk" : " ^1.0.4 " ,
49
49
"express" : " ^4.18.2" ,
50
50
"ts-node" : " ^10.9.1" ,
51
51
"typescript" : " ^4.9.3"
You can’t perform that action at this time.
0 commit comments