Skip to content

Instantly share code, notes, and snippets.

@vanjikumaran
Created July 22, 2016 21:07
Show Gist options
  • Save vanjikumaran/75b0a341936731497432d3475c716f22 to your computer and use it in GitHub Desktop.
Save vanjikumaran/75b0a341936731497432d3475c716f22 to your computer and use it in GitHub Desktop.
Auth Failure Handler Sequence Synapse Configuration
<sequence name="_auth_failure_handler_" xmlns="http://ws.apache.org/ns/synapse">
<switch source="$trp:Accept">
<case regex="application/json">
<property name="error_message_type" value="application/json"/>
</case>
<default>
<property name="error_message_type" value="application/xml"/>
</default>
</switch>
<sequence key="_build_"/>
</sequence>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment