We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0eccf36 commit 9aafe25Copy full SHA for 9aafe25
server/index.ts
@@ -42,7 +42,12 @@ let authToken: AuthorizationToken;
42
43
// auth flow: response with URL to redirect to Medicare.gov beneficiary login
44
app.get("/api/authorize/authurl", (req: Request, res: Response) => {
45
- res.send(bb.generateAuthorizeUrl(authData));
+ // 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) + "&scope=patient%2FPatient.s%20patient%2FExplanationOfBenefit.rs"
50
+ res.send(redirectUrl);
51
});
52
53
// auth flow: oauth2 call back
0 commit comments