diff --git a/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2023-12-01/examples/fhirservices/FhirServices_Create.json b/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2023-12-01/examples/fhirservices/FhirServices_Create.json index dcd472cbc332..fff1df23774e 100644 --- a/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2023-12-01/examples/fhirservices/FhirServices_Create.json +++ b/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2023-12-01/examples/fhirservices/FhirServices_Create.json @@ -29,16 +29,20 @@ "authority": "https://login.microsoftonline.com/abfde7b2-df0f-47e6-aabf-2462b07508dc", "audience": "https://azurehealthcareapis.com", "smartProxyEnabled": true, - "smartIdentityProviders": { - "https://login.b2clogin.com/11111111-1111-1111-1111-111111111111/v2.0": { - "22222222-2222-2222-2222-222222222222": { - "allowedDataActions": [ - "Read" - ], - "audience": "22222222-2222-2222-2222-222222222222" - } + "smartIdentityProviders": [ + { + "authority": "https://login.b2clogin.com/11111111-1111-1111-1111-111111111111/v2.0", + "applications": [ + { + "clientId": "22222222-2222-2222-2222-222222222222", + "audience": "22222222-2222-2222-2222-222222222222", + "allowedDataActions": [ + "Read" + ] + } + ] } - } + ] }, "corsConfiguration": { "origins": [ @@ -96,16 +100,20 @@ "authority": "https://login.microsoftonline.com/abfde7b2-df0f-47e6-aabf-2462b07508dc", "audience": "https://azurehealthcareapis.com", "smartProxyEnabled": true, - "smartIdentityProviders": { - "https://login.b2clogin.com/11111111-1111-1111-1111-111111111111/v2.0": { - "22222222-2222-2222-2222-222222222222": { - "allowedDataActions": [ - "Read" - ], - "audience": "22222222-2222-2222-2222-222222222222" - } + "smartIdentityProviders": [ + { + "authority": "https://login.b2clogin.com/11111111-1111-1111-1111-111111111111/v2.0", + "applications": [ + { + "clientId": "22222222-2222-2222-2222-222222222222", + "audience": "22222222-2222-2222-2222-222222222222", + "allowedDataActions": [ + "Read" + ] + } + ] } - } + ] }, "corsConfiguration": { "origins": [ @@ -170,16 +178,20 @@ "authority": "https://login.microsoftonline.com/abfde7b2-df0f-47e6-aabf-2462b07508dc", "audience": "https://azurehealthcareapis.com", "smartProxyEnabled": true, - "smartIdentityProviders": { - "https://login.b2clogin.com/11111111-1111-1111-1111-111111111111/v2.0": { - "22222222-2222-2222-2222-222222222222": { - "allowedDataActions": [ - "Read" - ], - "audience": "22222222-2222-2222-2222-222222222222" - } + "smartIdentityProviders": [ + { + "authority": "https://login.b2clogin.com/11111111-1111-1111-1111-111111111111/v2.0", + "applications": [ + { + "clientId": "22222222-2222-2222-2222-222222222222", + "audience": "22222222-2222-2222-2222-222222222222", + "allowedDataActions": [ + "Read" + ] + } + ] } - } + ] }, "corsConfiguration": { "origins": [ @@ -238,16 +250,20 @@ "authority": "https://login.microsoftonline.com/abfde7b2-df0f-47e6-aabf-2462b07508dc", "audience": "https://azurehealthcareapis.com", "smartProxyEnabled": true, - "smartIdentityProviders": { - "https://login.b2clogin.com/11111111-1111-1111-1111-111111111111/v2.0": { - "22222222-2222-2222-2222-222222222222": { - "allowedDataActions": [ - "Read" - ], - "audience": "22222222-2222-2222-2222-222222222222" - } + "smartIdentityProviders": [ + { + "authority": "https://login.b2clogin.com/11111111-1111-1111-1111-111111111111/v2.0", + "applications": [ + { + "clientId": "22222222-2222-2222-2222-222222222222", + "audience": "22222222-2222-2222-2222-222222222222", + "allowedDataActions": [ + "Read" + ] + } + ] } - } + ] }, "corsConfiguration": { "origins": [ diff --git a/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2023-12-01/examples/fhirservices/FhirServices_Get.json b/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2023-12-01/examples/fhirservices/FhirServices_Get.json index b2e492bfe962..52dccd481229 100644 --- a/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2023-12-01/examples/fhirservices/FhirServices_Get.json +++ b/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2023-12-01/examples/fhirservices/FhirServices_Get.json @@ -17,16 +17,20 @@ "authority": "https://login.microsoftonline.com/abfde7b2-df0f-47e6-aabf-2462b07508dc", "audience": "https://azurehealthcareapis.com", "smartProxyEnabled": true, - "smartIdentityProviders": { - "https://login.b2clogin.com/11111111-1111-1111-1111-111111111111/v2.0": { - "22222222-2222-2222-2222-222222222222": { - "allowedDataActions": [ - "Read" - ], - "audience": "22222222-2222-2222-2222-222222222222" - } + "smartIdentityProviders": [ + { + "authority": "https://login.b2clogin.com/11111111-1111-1111-1111-111111111111/v2.0", + "applications": [ + { + "clientId": "22222222-2222-2222-2222-222222222222", + "audience": "22222222-2222-2222-2222-222222222222", + "allowedDataActions": [ + "Read" + ] + } + ] } - } + ] }, "corsConfiguration": { "origins": [ diff --git a/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2023-12-01/healthcare-apis.json b/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2023-12-01/healthcare-apis.json index 75794720c665..4a41a8aa889b 100644 --- a/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2023-12-01/healthcare-apis.json +++ b/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2023-12-01/healthcare-apis.json @@ -3905,39 +3905,51 @@ "readOnly": false }, "smartIdentityProviders": { - "$ref": "#/definitions/SmartIdentityProviders" + "type": "array", + "description": "The array of identity provider configurations for SMART on FHIR authentication.", + "readOnly": false, + "items": { + "$ref": "#/definitions/SmartIdentityProviderConfiguration" + } } } }, - "SmartIdentityProviders": { - "title": "SMART Identity Providers", - "description": "The set of identity provider configurations for SMART on FHIR authentication. The SmartIdentityProviders dictionary keys will be the identity provider authority.", - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/SmartIdentityProviderApplications" - } - }, - "SmartIdentityProviderApplications": { - "description": "A set of applications configured in the identity provider used for SMART on FHIR authentication. The SmartIdentityProviders dictionary keys will be the application (client) id of the application.", + "SmartIdentityProviderConfiguration": { + "description": "An object to configure an identity provider for use with SMART on FHIR authentication.", "type": "object", - "additionalProperties": { - "$ref": "#/definitions/SmartIdentityProviderApplication" + "properties": { + "authority": { + "description": "The identity provider token authority also known as the token issuing authority.", + "type": "string" + }, + "applications": { + "type": "array", + "description": "The array of identity provider applications for SMART on FHIR authentication.", + "readOnly": false, + "items": { + "$ref": "#/definitions/SmartIdentityProviderApplication" + } + } } }, "SmartIdentityProviderApplication": { "description": "An Application configured in the Identity Provider used to access FHIR resources.", "type": "object", "properties": { + "clientId": { + "description": "The application client id defined in the identity provider. This value will be used to validate bearer tokens against the given authority.", + "type": "string" + }, + "audience": { + "description": "The audience that will be used to validate bearer tokens against the given authority.", + "type": "string" + }, "allowedDataActions": { "description": "The actions that are permitted to be performed on FHIR resources for the application.", "type": "array", "items": { "$ref": "#/definitions/SmartDataActions" } - }, - "audience": { - "description": "The audience that will be used to validate bearer tokens against the given authority.", - "type": "string" } } },