You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "James E. King III (JIRA)" <ji...@apache.org> on 2019/02/01 05:52:00 UTC

[jira] [Closed] (THRIFT-3782) How to get client's info(such as ip, cert when using SSL) in a python thrift server

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

James E. King III closed THRIFT-3782.
-------------------------------------
    Resolution: Information Provided
      Assignee: James E. King III

You can use the TSocket's handle to get the socket and then use normal socket operations to get the information you want.  For TSSLSocket you would probably need to add a certificate validation mechanism that stores the certificate of the connection so you could get it later.

> How to get client's info(such as ip, cert when using SSL) in a python thrift server
> -----------------------------------------------------------------------------------
>
>                 Key: THRIFT-3782
>                 URL: https://issues.apache.org/jira/browse/THRIFT-3782
>             Project: Thrift
>          Issue Type: Question
>          Components: Python - Library
>    Affects Versions: 0.9.3
>         Environment: python
>            Reporter: yueyemijing
>            Assignee: James E. King III
>            Priority: Major
>
> I'm writing a thrift service in python and I would like to understand how I can get the client's info(such as ip, cert when using SSL) in the handler functions context.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)