Stream: inferno
Topic: Single Patient API Test Suite - Bearer Token Locked
Fred Harmon (Sep 03 2020 at 16:36):
I am using a local instance of Inferno against a local FHIR server. I have done some pre-configuration in config.yaml but I don't see where I can set the Bearer Token and it appears as locked. Is there a way I can set this token?
Fred Harmon (Sep 03 2020 at 16:40):
This can be ignored. I see now I cannot skip to this test "Cannot execute this test because the following information was not collected during previously run tests: token."
Robert Scanlon (Sep 03 2020 at 16:41):
Correct, from a strict certification perspective, we want the bearer token used during these tests to be a bearer token that we know was produced during a valid launch (and not some hard-coded value), so we save bearer tokens we get from the previous tests.
Robert Scanlon (Sep 03 2020 at 16:44):
We have considered having an 'unlocked' or 'developer' mode in case you are developing authorization independently, but we haven't prioritized that feature. You can also hop over to the 'Community' edition version of the US Core tests, but those are slightly different than ONC's Single Patient API tests.
Robert Scanlon (Sep 03 2020 at 16:47):
Since you are running this locally, you can also modify lib/modules/onc_program_module.yml
and remove the lock_variables
section for this group of tests too: https://github.com/onc-healthit/inferno-program/blob/development/lib/modules/onc_program_module.yml#L145
Robert Scanlon (Sep 03 2020 at 16:49):
Our protections here are only skin-deep, so you could also simply edit the dom and paste in the bearer token you want to use right into it (if you are familiar w/browser dev tools).
Fred Harmon (Sep 03 2020 at 17:18):
Good to know. It could help in the short term for what I'm working on to have that unlocked. Thanks for the info.
Last updated: Apr 12 2022 at 19:14 UTC