Created
April 8, 2014 01:02
-
-
Save ebruchez/10079296 to your computer and use it in GitHub Desktop.
Charles: Add clerk auth headers
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
<?xml version='1.0' encoding='UTF-8' ?> | |
<?charles serialisation-version='2.0' ?> | |
<rewriteSet-array> | |
<rewriteSet> | |
<active>true</active> | |
<name>Add clerk auth headers</name> | |
<hosts> | |
<locationPatterns> | |
<locationMatch> | |
<location> | |
<host>localhost</host> | |
<port>8080</port> | |
</location> | |
<enabled>true</enabled> | |
</locationMatch> | |
</locationPatterns> | |
</hosts> | |
<rules> | |
<rewriteRule> | |
<active>true</active> | |
<ruleType>1</ruleType> | |
<matchHeader></matchHeader> | |
<matchValue></matchValue> | |
<matchHeaderRegex>false</matchHeaderRegex> | |
<matchValueRegex>false</matchValueRegex> | |
<matchRequest>true</matchRequest> | |
<matchResponse>false</matchResponse> | |
<newHeader>My-Username-Header</newHeader> | |
<newValue>clerk</newValue> | |
<newHeaderRegex>false</newHeaderRegex> | |
<newValueRegex>false</newValueRegex> | |
<matchWholeValue>false</matchWholeValue> | |
<replaceType>2</replaceType> | |
</rewriteRule> | |
<rewriteRule> | |
<active>true</active> | |
<ruleType>1</ruleType> | |
<matchHeader></matchHeader> | |
<matchValue></matchValue> | |
<matchHeaderRegex>false</matchHeaderRegex> | |
<matchValueRegex>false</matchValueRegex> | |
<matchRequest>true</matchRequest> | |
<matchResponse>false</matchResponse> | |
<newHeader>My-Roles-Header</newHeader> | |
<newValue>orbeon-user,clerk</newValue> | |
<newHeaderRegex>false</newHeaderRegex> | |
<newValueRegex>false</newValueRegex> | |
<matchWholeValue>false</matchWholeValue> | |
<replaceType>2</replaceType> | |
</rewriteRule> | |
<rewriteRule> | |
<active>true</active> | |
<ruleType>1</ruleType> | |
<matchHeader></matchHeader> | |
<matchValue></matchValue> | |
<matchHeaderRegex>false</matchHeaderRegex> | |
<matchValueRegex>false</matchValueRegex> | |
<matchRequest>true</matchRequest> | |
<matchResponse>false</matchResponse> | |
<newHeader>My-Group-Header</newHeader> | |
<newValue>orbeon-user</newValue> | |
<newHeaderRegex>false</newHeaderRegex> | |
<newValueRegex>false</newValueRegex> | |
<matchWholeValue>false</matchWholeValue> | |
<replaceType>2</replaceType> | |
</rewriteRule> | |
</rules> | |
</rewriteSet> | |
</rewriteSet-array> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment