|
1 | 1 | <TargetEndpoint name="e-referrals-service-api-target"> |
2 | 2 | <FaultRules> |
3 | | - <FaultRule name="access_token_expired_fhir_r4"> |
| 3 | + <FaultRule name="access_token_error_fhir_r4"> |
4 | 4 | <Step> |
5 | 5 | <Name>ExtractVariables.OAuthErrorFaultString</Name> |
6 | 6 | </Step> |
7 | 7 | <Step> |
8 | 8 | <Name>AssignMessage.SetOperationOutcomeVariablesR4</Name> |
9 | 9 | </Step> |
| 10 | + <Step> |
| 11 | + <Name>AssignMessage.SetInsufficientAALVariables</Name> |
| 12 | + <Condition>faultstring ~ "*OauthV2.VerifyAccessToken.scopeSet*"</Condition> |
| 13 | + </Step> |
10 | 14 | <Step> |
11 | 15 | <Name>AssignMessage.SetOperationOutcomeIssueCodeLogin</Name> |
12 | 16 | </Step> |
|
15 | 19 | </Step> |
16 | 20 | <Condition>(oauthV2.OauthV2.VerifyAccessToken.failed = true) and (isFhirR4Path = true)</Condition> |
17 | 21 | </FaultRule> |
18 | | - <FaultRule name="access_token_expired"> |
| 22 | + <FaultRule name="access_token_error"> |
19 | 23 | <Step> |
20 | 24 | <Name>ExtractVariables.OAuthErrorFaultString</Name> |
21 | 25 | </Step> |
| 26 | + <Step> |
| 27 | + <Name>AssignMessage.SetInsufficientAALVariables</Name> |
| 28 | + <Condition>faultstring ~ "*OauthV2.VerifyAccessToken.scopeSet*"</Condition> |
| 29 | + </Step> |
| 30 | + <Step> |
| 31 | + <Name>AssignMessage.SetOperationOutcomeVariablesPreR4</Name> |
| 32 | + <!--Condition is implemented this way around to account for aalError being null (https://docs.apigee.com/api-platform/reference/conditions-reference#behaviorofnulloperandsinconditionalstatements)--> |
| 33 | + <Condition>aalError == true</Condition> |
| 34 | + </Step> |
| 35 | + <Step> |
| 36 | + <Name>AssignMessage.SetOperationOutcomeIssueCodeLogin</Name> |
| 37 | + <!--Condition is implemented this way around to account for aalError being null (https://docs.apigee.com/api-platform/reference/conditions-reference#behaviorofnulloperandsinconditionalstatements)--> |
| 38 | + <Condition>aalError == true</Condition> |
| 39 | + </Step> |
22 | 40 | <Step> |
23 | 41 | <Name>AssignMessage.OAuthPolicyErrorResponse</Name> |
| 42 | + <!--Condition is implemented this way around to account for aalError being null (https://docs.apigee.com/api-platform/reference/conditions-reference#behaviorofnulloperandsinconditionalstatements)--> |
| 43 | + <Condition>aalError != true</Condition> |
| 44 | + </Step> |
| 45 | + <Step> |
| 46 | + <Name>AssignMessage.AuthenticationOperationOutcomeErrorResponse</Name> |
| 47 | + <Condition>aalError = true</Condition> |
24 | 48 | </Step> |
25 | 49 | <Condition>(oauthV2.OauthV2.VerifyAccessToken.failed = true) and (isFhirR4Path = false)</Condition> |
26 | 50 | </FaultRule> |
|
137 | 161 | </Step> <Step> |
138 | 162 | <Name>AssignMessage.Remove.x-request-id-header</Name> |
139 | 163 | </Step><Step> |
140 | | - <Name>AssignMessage.Set.x-ers-acr-header</Name> |
| 164 | + <Name>AssignMessage.Set.x-ers-authentication-assurance-level-header</Name> |
141 | 165 | </Step><Step> |
142 | 166 | <Name>AssignMessage.Set.x-ers-amr-header</Name> |
143 | 167 | </Step><Step> |
|
0 commit comments