Hi Omindu,

Hopefully, if the php client library supports TSocket(TTransport), you can
just create SSL php client socket using "fsockopen" and just pass it as a
TSocket. Then, that client might be use to get a thrift session ID from
BAM(using ssl connect method).

What the TSSLTransportFactory(java) class also does is creating
SSLSocket internally
and pass it as TSocket. We may do the same in php also.

Or else the easiest way is, we can create an axis2 service just for thrift
authentication services.(I need others' opinions also about this idea to
know if that is better approach)

Thanks,
-Ayash

On Tue, Nov 25, 2014 at 5:09 PM, Omindu Rathnaweera <[email protected]> wrote:

> Hi,
>
> I am working on a PHP data publisher for BAM. The skeleton php classes and
> Thrift php library can be found at [1].
>
> In order to publish data from the PHP client, a session ID is needed to be
> generated by connecting a *ThriftSecureEventTransmissionServiceClient*. For
> the authentication purpose, the
> *ThriftSecureEventTransmissionServiceClient* requires a secure transport
> wrapped in a *TProtocol* object. Even though Thrift java library provides
> the  *TSSLTransportFactory* class to create a secure transport, the
> Thrift php library does not provide an equivalent method to create a secure
> transport. Because of this, there's a difficulty in authenticating the
> publisher and obtaining a session ID to publish events.
>
> I would like to know your input on overcoming this difficulty or at
> least whether it is possible to obtain the session ID in an alternative way
> without communicating through thrift.
>
>
> [1] - https://github.com/omindu/php-publisher
>
> Thanks,
> Omindu.
> --
> Omindu Rathnaweera
> Software Engineer, WSO2 Inc.
> Mobile: +94 771 197 211
>



-- 
Ayashkantha Ramasinghe
Software Engineer WSO2, Inc.
email: [email protected] <[email protected]>;
TP: +94 77 7 487 669
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to