Skip to content

Instantly share code, notes, and snippets.

@staslebedenko
Created April 11, 2020 19:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save staslebedenko/ef9d5839dbe8e5fe7bf06bfd0717a1b8 to your computer and use it in GitHub Desktop.
Save staslebedenko/ef9d5839dbe8e5fe7bf06bfd0717a1b8 to your computer and use it in GitHub Desktop.
<policies>
<inbound>
<base />
<validate-jwt header-name="Authorization" failed-validation-httpcode="401" failed-validation-error-message="Failed.">
<openid-config url="https://demo.identityserver.io/.well-known/openid-configuration" />
<audiences>
<audience>api</audience>
</audiences>
<issuers>
<issuer>https://demo.identityserver.io/</issuer>
</issuers>
</validate-jwt>
<set-backend-service id="apim-generated-policy" backend-id="identity-demo-api" />
</inbound>
<backend>
<base />
</backend>
<outbound>
<base />
</outbound>
<on-error>
<base />
</on-error>
</policies>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment