Skip to content

Commit 77b842d

Browse files
authored
Merge pull request #130 from NHSDigital/apm-5277-use-enhanced-verify-api-key
APM-5277 Use enhanced verify api key
2 parents 46323a5 + 7d72e28 commit 77b842d

3 files changed

Lines changed: 14 additions & 1 deletion

File tree

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2+
<FlowCallout async="false" continueOnError="false" enabled="true" name="FlowCallout.EnhancedVerifyApiKey">
3+
<DisplayName>FlowCallout.EnhancedVerifyApiKey</DisplayName>
4+
<FaultRules/>
5+
<Properties/>
6+
<SharedFlowBundle>EnhancedVerifyApiKey</SharedFlowBundle>
7+
</FlowCallout>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
<VerifyAPIKey async="false" continueOnError="false" enabled="true" name="VerifyAPIKey.FromHeader">
1+
<VerifyAPIKey async="false" continueOnError="true" enabled="true" name="VerifyAPIKey.FromHeader">
22
<APIKey ref="request.header.apikey"/>
33
</VerifyAPIKey>

proxies/live/apiproxy/targets/target.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
<TargetEndpoint name="nhs-website-content-api-target">
22
<PreFlow>
33
<Request>
4+
<!-- EnhancedVerifyApiKey shared flow checks apikeys with no associated products which is missed by Apigee's VerifyApiKey policy. -->
5+
<Step>
6+
<Name>FlowCallout.EnhancedVerifyApiKey</Name>
7+
</Step>
8+
<!-- VerifyAPIKey policy is still needed but set to continueOnError="true" to pass rate limiting info from the app to the
9+
ApplyRateLimiting policy in the shared flow. -->
410
<Step>
511
<Name>VerifyAPIKey.FromHeader</Name>
612
</Step>

0 commit comments

Comments
 (0)