Hi Aman,
Please set the following property before the send or call mediator in your
proxy service configuration.
<property name="accessToken" value="<ACCESS_TOKEN>"/>
<property name="Authorization" expression="fn:concat('Bearer ',
$ctx:accessToken)" scope="transport"/>
Note: Replace the <ACCESS_TOKEN> by the actual token.
Thanks
On Thu, Jul 26, 2018 at 2:13 PM, Aman Singh <[email protected]> wrote:
> Hi team,
>
> I have created an Event Hub in Azure. To call the Event Hub we use simple
> GET request as mentioned in Event Hub docs. We also need an "Bearer Token"
> {authentication key}, to call the request with POSTMAN.
>
> If I am calling that Event Hub via WSO2 ESB, using proxy service and
> attaching a "HTTP Endpoint" inside a SEND mediator, where my HTTP Endpoint
> contain the 'request' to call Event Hub. Where and how can I use/attach the
> "bearer token" in my WSO2 ESB.
>
> Any help would be appreciated.
>
> Thank you,
> Aman
>
>
> _______________________________________________
> Dev mailing list
> [email protected]
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
--
Shakila Sasikaran
Software Engineer
Mobile :+94 (0) 77 526 6848
[email protected]
WSO2, Inc.
lean . enterprise . middleware
http://www.wso2.com/
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev