Re: Creating proxies with different hmac_key

Irmen de Jong <[email protected]> Tue, 29 Oct 2013 20:39:17 +0100
Newsgroups gmane.comp.python.pyro
Message-ID <[email protected]>
On 29-10-2013 11:11, Giovanni Porcari wrote:
> Hi all
> 
> i am using pyro4 and I should  connect to different pyro4 daemons in different servers
> that uses different hmac_keys.
> 
> So I would like to write :
> 
> proxy_to_foo = Pyro4.Proxy(uri_foo,hmac_key='myfookey')
> proxy_to_bar = Pyro4.Proxy(uri_bar,hmac_key='mybarkey')
> 
> But unfortunately i can only use Pyro4.config.HMAC_KEY= 'mykey'
> 
> Any suggestion ?
> 

This is not possible at this time.

It is on the TODO list though. With an equally likely alternative to remove the HMAC in
its current form altogether. Would you miss it if it is gone?

Irmen


------------------------------------------------------------------------------
Android is increasing in popularity, but the open development platform that
developers love is also attractive to malware creators. Download this white
paper to learn more about secure code signing practices that can help keep
Android apps secure.
http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk