Hi Godwin,
Yes we can do it. Can we have a small dicussion on Monday?

Thanks,
Irunika

On Apr 21, 2017 8:00 PM, "Godwin Shrimal" <god...@wso2.com> wrote:

> @adding Thusitha.
>
> As described above currently there is no way to extract headers from
> Session in MSF4J and no interceptor support yet with websocket. Shall we
> add the capability to extract headers from Session ?
>
>
> Thanks
> Godwin
>
>
> On Fri, Apr 21, 2017 at 5:32 PM, Godwin Shrimal <god...@wso2.com> wrote:
>
>> Hi All,
>>
>> Here we are using websocket sever as MSF4J and client as netty, my
>> problem is currently there is no way to extract headers from Session while
>> handshake.
>>
>> Thanks
>> Godwin
>>
>> On Fri, Apr 21, 2017 at 12:21 PM, Ayyoob Hamza <ayy...@wso2.com> wrote:
>>
>>> Hi
>>> What would be solution if we are to initiate the connection from the
>>> browser itself, AFAIK websocket library for browsers does not support
>>> adding headers.
>>>
>>> Thanks,
>>>
>>> *Ayyoob Hamza*
>>> *Senior Software Engineer*
>>> WSO2 Inc.; http://wso2.com
>>> email: ayy...@wso2.com cell: +94 77 1681010 <%2B94%2077%207779495>
>>>
>>> On Fri, Apr 21, 2017 at 11:32 AM, Irunika Weeraratne <irun...@wso2.com>
>>> wrote:
>>>
>>>> Hi Godwin,
>>>> IMHO the best way to do it using HTTP header. Are you using netty
>>>> directly? If that so there is a way to add necessary headers for the
>>>> initial handshake and we can check them in the server side.
>>>>
>>>> Thanks,
>>>> Irunika
>>>>
>>>> *Irunika Weeraratne*
>>>> *Software Engineer | WSO2, Inc. <http://wso2.com/>*
>>>> *Email : irun...@wso2.com <irun...@wso2.com>*
>>>> *LinkedIn : https://lk.linkedin.com/in/irunika
>>>> <https://lk.linkedin.com/in/irunika>*
>>>> *Mobile : +94712403314 <+94%2071%20240%203314>*
>>>> *Lean . Enterprise . Middleware*
>>>>
>>>>
>>>> On Fri, Apr 21, 2017 at 11:27 AM, Arshardh Ifthikar <arsha...@wso2.com>
>>>> wrote:
>>>>
>>>>> You can find it here: https://docs.wso2.com/display/
>>>>> AM210/Create+a+WebSocket+API
>>>>>
>>>>> Thanks
>>>>>
>>>>> On Fri, Apr 21, 2017 at 11:24 AM, Godwin Shrimal <god...@wso2.com>
>>>>> wrote:
>>>>>
>>>>>> Can you please share the relevant API Manager source ?
>>>>>>
>>>>>>
>>>>>> Thanks
>>>>>> Godwin
>>>>>>
>>>>>> On Fri, Apr 21, 2017 at 11:22 AM, Arshardh Ifthikar <
>>>>>> arsha...@wso2.com> wrote:
>>>>>>
>>>>>>> Hi,
>>>>>>>
>>>>>>> IMHO the best approach would be to send it via a header in the
>>>>>>> initial HTTP request used to establish the connection. This is the 
>>>>>>> method
>>>>>>> we follow to send the access token for websocket APIs in the API 
>>>>>>> Manager.
>>>>>>>
>>>>>>> Thanks
>>>>>>> Arshardh
>>>>>>>
>>>>>>> On Fri, Apr 21, 2017 at 11:11 AM, Godwin Shrimal <god...@wso2.com>
>>>>>>> wrote:
>>>>>>>
>>>>>>>> Hi All,
>>>>>>>>
>>>>>>>> What is the best way to transmit a security token in web socket
>>>>>>>> while establishing a connection ? Currently we are passing through path
>>>>>>>> parameter such as wss://localhost:8080/server/<token>
>>>>>>>>
>>>>>>>> Is it secure to sent it via path parameter ? If not what is the
>>>>>>>> correct approach ?
>>>>>>>>
>>>>>>>>
>>>>>>>> Thanks
>>>>>>>> Godwin
>>>>>>>>
>>>>>>>> --
>>>>>>>> *Godwin Amila Shrimal*
>>>>>>>> WSO2 Inc.; http://wso2.com
>>>>>>>> lean.enterprise.middleware
>>>>>>>>
>>>>>>>> mobile: *+94772264165*
>>>>>>>> linkedin: *http://lnkd.in/KUum6D <http://lnkd.in/KUum6D>*
>>>>>>>> twitter: https://twitter.com/godwinamila
>>>>>>>> <http://wso2.com/signature>
>>>>>>>>
>>>>>>>> _______________________________________________
>>>>>>>> Dev mailing list
>>>>>>>> Dev@wso2.org
>>>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> *Arshardh Ifthikar*
>>>>>>> Trainee Software Engineer
>>>>>>> WSO2, Inc.
>>>>>>> Mobile: +94719806525 <+94%2071%20980%206525>
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> *Godwin Amila Shrimal*
>>>>>> WSO2 Inc.; http://wso2.com
>>>>>> lean.enterprise.middleware
>>>>>>
>>>>>> mobile: *+94772264165*
>>>>>> linkedin: *http://lnkd.in/KUum6D <http://lnkd.in/KUum6D>*
>>>>>> twitter: https://twitter.com/godwinamila
>>>>>> <http://wso2.com/signature>
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> *Arshardh Ifthikar*
>>>>> Trainee Software Engineer
>>>>> WSO2, Inc.
>>>>> Mobile: +94719806525 <+94%2071%20980%206525>
>>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> Dev mailing list
>>>> Dev@wso2.org
>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>
>>>>
>>>
>>> _______________________________________________
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Godwin Amila Shrimal*
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> mobile: *+94772264165*
>> linkedin: *http://lnkd.in/KUum6D <http://lnkd.in/KUum6D>*
>> twitter: https://twitter.com/godwinamila
>> <http://wso2.com/signature>
>>
>
>
>
> --
> *Godwin Amila Shrimal*
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: *+94772264165*
> linkedin: *http://lnkd.in/KUum6D <http://lnkd.in/KUum6D>*
> twitter: https://twitter.com/godwinamila
> <http://wso2.com/signature>
>
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to