[ 
https://issues.apache.org/jira/browse/SYNAPSE-50?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Asankha C. Perera resolved SYNAPSE-50.
--------------------------------------

    Resolution: Fixed
      Assignee: Chathura Ekanayake

Chathura

Please include this as an example of a class mediator and how Synapse could be 
extended to handle useful requirements - into our documentation. Also include a 
link to the actual sample  at 
https://issues.apache.org/jira/secure/attachment/12348487/BasicAuthenticationMediator.zip

Thanks Michael for this. We will re-evaluate if this could become a mainstream 
mediator post our 1.0 release

asankha

> HTTP Basic Authentication mediator
> ----------------------------------
>
>                 Key: SYNAPSE-50
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-50
>             Project: Synapse
>          Issue Type: Improvement
>          Components: Extension Mediators
>            Reporter: Michael Buchholz
>         Assigned To: Chathura Ekanayake
>            Priority: Minor
>         Attachments: BasicAuthenticationMediator.zip
>
>
> 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.
-
You can reply to this email to add a comment to the issue online.


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

Reply via email to