-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #39 from matthew-mbe/newtargetservers
mhdspoc targets
- Loading branch information
Showing
2 changed files
with
57 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
<TargetEndpoint name="tsas-solarch-mhdpoc-api-target"> | ||
<PreFlow> | ||
<Request> | ||
<Step> | ||
<Name>VerifyApiKey.FromHeader</Name> | ||
<Condition>request.header.Authorization Is null</Condition> | ||
</Step> | ||
<Step> | ||
<Name>OauthV2.VerifyAccessTokenAppAllLevels</Name> | ||
<Condition>request.header.apikey Is null</Condition> | ||
</Step> | ||
<Step> | ||
<Name>FlowCallout.ApplyRateLimiting</Name> | ||
</Step> | ||
</Request> | ||
</PreFlow> | ||
<FaultRules> | ||
<FaultRule name="access_token_expired"> | ||
<Step> | ||
<Name>ExtractVariables.OAuthErrorFaultString</Name> | ||
</Step> | ||
<Step> | ||
<Name>AssignMessage.OAuthPolicyErrorResponse</Name> | ||
</Step> | ||
<Condition>oauthV2.OauthV2.VerifyAccessToken.failed</Condition> | ||
</FaultRule> | ||
</FaultRules> | ||
<!-- | ||
To point to a named target server as this is how it SHOULD be implemented: | ||
For example: | ||
<HTTPTargetConnection> | ||
<SSLInfo> | ||
<Enabled>true</Enabled> | ||
</SSLInfo> | ||
<LoadBalancer> | ||
<Server name="nhse-tsas-solarch-demo-api" /> | ||
</LoadBalancer> | ||
</HTTPTargetConnection> | ||
--> | ||
<HTTPTargetConnection> | ||
<Properties> | ||
<Property name="supports.http10">true</Property> | ||
<Property name="request.retain.headers">User-Agent,Referer,Accept-Language</Property> | ||
<Property name="retain.queryparams">apikey</Property> | ||
</Properties> | ||
<SSLInfo> | ||
<Enabled>false</Enabled> | ||
</SSLInfo> | ||
<LoadBalancer> | ||
<Server name="tsas-solarch-mhdpoc-api" /> | ||
</LoadBalancer> | ||
</HTTPTargetConnection> | ||
</TargetEndpoint> |