Untitled

mail@pastecode.io avatar
unknown
plain_text
3 years ago
2.1 kB
2
Indexable
Never
<!--
NEW
IMPORTANT:
- Policy elements can appear only within the <inbound>, <outbound>, <backend> section elements.
- To apply a policy to the incoming request (before it is forwarded to the backend service), place a corresponding policy element within the <inbound> section element.
- To apply a policy to the outgoing response (before it is sent back to the caller), place a corresponding policy element within the <outbound> section element.
- To add a policy, place the cursor at the desired insertion point and select a policy from the sidebar.
- To remove a policy, delete the corresponding policy statement from the policy document.
- Position the <base> element within a section element to inherit all policies from the corresponding section element in the enclosing scope.
- Remove the <base> element to prevent inheriting policies from the corresponding section element in the enclosing scope.
- Policies are applied in the order of their appearance, from the top down.
- Comments within policy elements are not supported and may disappear. Place your comments between policy elements or at a higher level scope.
-->
<policies>
<inbound>
<base />
<validate-jwt header-name="Authorization" failed-validation-httpcode="401" failed-validation-error-message="Unauthorized. Access token is missing or invalid. (APIM)">
<openid-config url="https://dhpidpdev.b2clogin.com/dhpidpdev.onmicrosoft.com/v2.0/.well-known/openid-configuration?p=B2C_1a_signup_signin" />
<audiences>
<audience>0652ff86-ebf7-4897-a9ed-a6561e431946</audience>
<audience>77a30d2b-d15e-4201-824d-818537c4b544</audience>
<audience>67c75104-26f7-43ed-a74a-9761a258a828</audience>
</audiences>
<issuers>
<issuer>"https://dhpidpdev.b2clogin.com/597ee2fd-a8ac-4a80-a197-45ab4e37c5c1/v2.0/"
</issuers>
</validate-jwt>
<set-header name="Authorization" exists-action="delete" />
<authentication-basic username="{{b2bBasicAuthUser}}" password="{{b2bBasicAuthPass}}" />
</inbound>
<backend>
<base />
</backend>
<outbound>
<base />
</outbound>
<on-error>
<base />
</on-error>
</policies>