From 2dd1c6c802d83ffc73662d691cd8c9d35443f345 Mon Sep 17 00:00:00 2001 From: Tim Coffman <234244+timcoffman@users.noreply.github.com> Date: Mon, 2 Dec 2024 15:06:55 -0600 Subject: [PATCH] support for introspect "sub" missing base URL and/or resource type when fully-qualiied "fhirUser" is available as a fallback --- src/test/java/edu/ohsu/cmp/ecp/sds/PatientAppClientTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/java/edu/ohsu/cmp/ecp/sds/PatientAppClientTest.java b/src/test/java/edu/ohsu/cmp/ecp/sds/PatientAppClientTest.java index ef7f0c9..0dd14a1 100644 --- a/src/test/java/edu/ohsu/cmp/ecp/sds/PatientAppClientTest.java +++ b/src/test/java/edu/ohsu/cmp/ecp/sds/PatientAppClientTest.java @@ -310,7 +310,7 @@ void cannotStoreConditionWhereSubjectIsUnrelatedToAuthorizedUser() { @Test void canStoreConditionWhereSubjectIsRelatedToAuthorizedUser() { - IIdType authorizedRelatedPersonId = new IdType( "RelatedPerson", createTestSpecificId() ) ; + IIdType authorizedRelatedPersonId = new IdType( FOREIGN_PARTITION_NAME, "RelatedPerson", createTestSpecificId(), null ) ; String token = mockPrincipalRegistry.register().principal( "MyRelatedPerson", authorizedRelatedPersonId.toString() ).token() ; mockPermissionRegistry .person( authorizedPatientId.toString() )