Re: PYro4 v4.17 and HMAC_KEY error: hmac key config not symmetric
Aurelio Forese <[email protected]>
| Newsgroups | gmane.comp.python.pyro |
|---|---|
| Message-ID | <CAAt0uy+p-rvRCRzvqYLO02_ob_qH6Z0-AhbGHsjk6RrGWe8EYw@mail.gmail.com> |
Hi Irmen, just to let you know that seting the HMAC_KEY through a session variable worked perfectly and now my code is running with authentication. Many thanks! Have a nice day. Aurelio 2013/2/22 Irmen de Jong <[email protected]>: > On 22-2-2013 19:16, Aurelio Forese wrote: >> Hi Irmen, >> the code is failing when starting the server. >> The nameserver and server are hosted on the same machine and I >> suspected nameserver needed the HMAC_KEY but I could not find a way to >> set it: could you help me with setting that key? >> Once done, I'll give you a feedback on this. > > You'll need to set it as environment variable in your shell before launching the name > server. The name server doesn't have a commandline argument to specify it. See > http://pythonhosted.org/Pyro4/config.html#configuring-pyro > So for instance in bash: > > $ export PYRO_HMAC_KEY='shared_secret_key' > $ python -m Pyro4.naming > .... > > > Cheers > Irmen de Jong > > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_d2d_feb > _______________________________________________ > Pyro-core mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/pyro-core ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_feb