onc-healthit / inferno-program

Archived source code for the Inferno Testing Tool and the Program Edition set of tests. No longer maintained.
https://inferno.healthit.gov/
Apache License 2.0
38 stars 12 forks source link

FI-1351 Allow server grants additional scopes #384

Closed yunwwang closed 3 years ago

yunwwang commented 3 years ago

Summary

This PR addresses two GitHub Issues: #372 and #353

1) SMART App Launch IG specifically mentioned Person as a possible resource type for fhirUser claim. So this PR added Person to the whitelist of predefined request scopes. Though Inferno test client does not list patient/Person.read by default, tester can add this scope as needed

2) RFC-6749 section 3.3 allows server to grant additional scopes beyond client's request. This PR relaxes the scope validations for received scopes

New behavior

Code changes

Testing guidance

Verify that tester can manually add patient/Person.read to the Standalone Patient Scope at "Standalone Patient App" test Server returns additional scope is tested by new unit tests.