Skip to content

Instantly share code, notes, and snippets.

@anm237
Created July 11, 2022 11:24
Show Gist options
  • Save anm237/4acb2fc3486d463d3b89821a411d6356 to your computer and use it in GitHub Desktop.
Save anm237/4acb2fc3486d463d3b89821a411d6356 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="Unauthorized">
<issuer-signing-keys>
<key>123456781234567812345678</key>
</issuer-signing-keys>
<required-claims>
<claim name="admin" match="any">
<value>true</value>
</claim>
</required-claims>
</validate-jwt>
</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