HTTP Basic Authentication mediator
----------------------------------

                 Key: SYNAPSE-50
                 URL: https://issues.apache.org/jira/browse/SYNAPSE-50
             Project: Synapse
          Issue Type: Improvement
          Components: extensions
            Reporter: Michael Buchholz
            Priority: Minor


Hi,

the attached mediator can be used to validate HTTP Basic Authentication headers 
within a try block.
Here“s an example usage:

<try>
        <sequence>
          <class name="de.subnatural.synapse.BasicAuthenticationMediator">
            <property name="reqUsername" value="bob"/>
            <property name="reqPassword" value="ross"/>
          </class>
        </sequence>
        <onError>
          <makefault>
            <code value="tns:Receiver" 
xmlns:tns="http://www.w3.org/2003/05/soap-envelope"/>
            <reason value="Authorization failed!"/>
          </makefault>
          <send/>
        </onError>
      </try>

Feel free to change package name etc. if you would like to include it as a 
standard mediator.

Cheers,
Michael

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to