Uploaded image for project: 'Synapse'
  1. Synapse
  2. SYNAPSE-50

HTTP Basic Authentication mediator

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • None
    • Extension Mediators
    • None

    Description

      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

      Attachments

        1. BasicAuthenticationMediator.zip
          3 kB
          Michael Buchholz

        Activity

          People

            ccekanayake Chathura Ekanayake
            mbuchholz Michael Buchholz
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: