-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Add new url for messageAcknowledge (#468)
- Loading branch information
1 parent
3b30c58
commit 4ab1f42
Showing
5 changed files
with
165 additions
and
33 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<policies> | ||
<inbound> | ||
<base/> | ||
<choose> | ||
<when condition="@(((string)context.Product.Id).Contains(" prod-fd"))"> | ||
<validate-jwt header-name="Authorization" failed-validation-httpcode="401" | ||
failed-validation-error-message="Unauthorized" require-expiration-time="false" | ||
require-scheme="Bearer" require-signed-tokens="true"> | ||
<openid-config url="https://login.microsoftonline.com/${TENANT_ID}/.well-known/openid-configuration"/> | ||
<required-claims> | ||
<claim name="aud" match="all"> | ||
<value>${EXTERNAL-OAUTH2-ISSUER}</value> | ||
</claim> | ||
</required-claims> | ||
</validate-jwt> | ||
</when> | ||
</choose> | ||
<set-variable name="fnkey" value="${FN_KEY}"/> | ||
<set-header name="X-FUNCTIONS-KEY" exists-action="override"> | ||
<value>@((string)context.Variables["fnkey"])</value> | ||
</set-header> | ||
<set-backend-service base-url="${BACKEND_BASE_URL}"/> | ||
<rewrite-uri template="@("/api/acknowledgment/" + (string)context.Variables["productId"] + "/message/{messageId}/status/{status}")" /> | ||
</inbound> | ||
<backend> | ||
<base/> | ||
</backend> | ||
<on-error> | ||
<base/> | ||
</on-error> | ||
</policies> |
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
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