in src/smartHandler.ts [116:137]
throw Error(
`Authorization configuration not properly set up. Either 'tokenIntrospection' or 'jwksEndpoint' must be present`,
);
}
const fhirUserClaim = get(decodedToken, this.config.fhirUserClaimPath);
const patientContextClaim = get(decodedToken, `${this.config.launchContextPathPrefix}patient`);
const fhirServiceBaseUrl = request.fhirServiceBaseUrl ?? this.apiUrl;
// get just the scopes that apply to this request
const scopes = getScopes(decodedToken[this.config.scopeKey]);
const usableScopes = filterOutUnusableScope(
scopes,
this.config.scopeRule,
request.operation,
this.isUserScopeAllowedForSystemExport,
request.resourceType,
request.bulkDataAuth,
patientContextClaim,
fhirUserClaim,
);
if (!usableScopes.length) {