AutobahnPython CRA demo not working

#1

Hi there… Is there an API doc somewhere for AutobahnCRAServerProtocol? The CRA server demo is not working for me:

AttributeError: class WampCraProtocol has no attribute ‘deriveKey’

It looks to me that this may have been changed to ‘authSignature’ but the parameters are different than deriveKey. Help?

0 Likes

#2

I am using the demo in the repository: https://github.com/tavendo/AutobahnPython/tree/master/examples/wamp/authentication

Thanks.

0 Likes

#3

Hi there... Is there an API doc somewhere for
AutobahnCRAServerProtocol? The CRA server demo is not working for me:

AttributeError: class WampCraProtocol has no attribute 'deriveKey'

It looks to me that this may have been changed to 'authSignature' but
the parameters are different than deriveKey. Help?

Are you using the library + example both from master on Github?

I think I remember an issue with AutobahnPyhton 0.5.14 and the example from Github ..

/Tobias

···

Am 18.08.2013 14:26, schrieb jumbo...@gmail.com:

--
You received this message because you are subscribed to the Google
Groups "Autobahn" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to autobahnws+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

0 Likes

#4

No, come to think of it. I installed autobahn with pip.

···

On Monday, August 19, 2013 2:55:06 AM UTC-5, Tobias Oberstein wrote:

Am 18.08.2013 14:26, schrieb jumb...@gmail.com:

Hi there… Is there an API doc somewhere for

AutobahnCRAServerProtocol? The CRA server demo is not working for me:

AttributeError: class WampCraProtocol has no attribute ‘deriveKey’

It looks to me that this may have been changed to ‘authSignature’ but

the parameters are different than deriveKey. Help?

Are you using the library + example both from master on Github?

I think I remember an issue with AutobahnPyhton 0.5.14 and the example
from Github …

/Tobias

You received this message because you are subscribed to the Google

Groups “Autobahn” group.

To unsubscribe from this group and stop receiving emails from it, send

an email to autobahnws+...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

0 Likes

#5

Is there a way to edit posts?

I will look into updating the autobahn version with the git repo.

···

On Tuesday, August 20, 2013 8:53:51 AM UTC-5, jumb...@gmail.com wrote:

No, come to think of it. I installed autobahn with pip.

On Monday, August 19, 2013 2:55:06 AM UTC-5, Tobias Oberstein wrote:

Am 18.08.2013 14:26, schrieb jumb...@gmail.com:

Hi there… Is there an API doc somewhere for

AutobahnCRAServerProtocol? The CRA server demo is not working for me:

AttributeError: class WampCraProtocol has no attribute ‘deriveKey’

It looks to me that this may have been changed to ‘authSignature’ but

the parameters are different than deriveKey. Help?

Are you using the library + example both from master on Github?

I think I remember an issue with AutobahnPyhton 0.5.14 and the example
from Github …

/Tobias

You received this message because you are subscribed to the Google

Groups “Autobahn” group.

To unsubscribe from this group and stop receiving emails from it, send

an email to autobahnws+...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

0 Likes

#6

Ok I’ve installed from the git repo now with the same result. the demo uses a method ‘deriveKey’ of WampCraProtocol but all the class definition has is ‘authSignature’.

I cannot find any documentation on how to use method authSignature.

···

On Sunday, August 18, 2013 7:26:50 AM UTC-5, jumb...@gmail.com wrote:

Hi there… Is there an API doc somewhere for AutobahnCRAServerProtocol? The CRA server demo is not working for me:

AttributeError: class WampCraProtocol has no attribute ‘deriveKey’

It looks to me that this may have been changed to ‘authSignature’ but the parameters are different than deriveKey. Help?

0 Likes

#7

Ok I've installed from the git repo now with the same result. the demo
uses a method 'deriveKey' of WampCraProtocol but all the class
definition has is 'authSignature'.

No, it's there:

https://github.com/tavendo/AutobahnPython/blob/master/autobahn/autobahn/wamp.py#L1536

SERVER:

oberstet@THINKPAD-T410S /f/scm/AutobahnPython/examples/wamp/authentication (master)
$ python server.py
Auth Extra/Secrets
{'keylen': 32, 'salt': 'RANDOM SALT', 'iterations': 1000}
{'foobar': 'znWa4bxY1glpbQlZziHIlXA2shfF+HoCr9bnmZ5HPQg='}

CLIENT:

oberstet@THINKPAD-T410S /f/scm/AutobahnPython/examples/wamp/authentication (master)
$ python client.py
2013-08-25 14:26:15+0200 [-] Log opened.
2013-08-25 14:26:15+0200 [-] Starting factory <autobahn.wamp.WampClientFactory instance at 0x0357D760>
2013-08-25 14:26:15+0200 [MyClientProtocol,client] Authentication Success! {u'rpc': [{u'call': True, u'uri': u'http://example.com/procedures
/hello'}], u'pubsub': [{u'prefix': True, u'uri': u'http://example.com/topics/', u'pub': True, u'sub': True}]}
2013-08-25 14:26:15+0200 [MyClientProtocol,client] u'Hello back Foobar!'
2013-08-25 14:26:15+0200 [MyClientProtocol,client] Stopping factory <autobahn.wamp.WampClientFactory instance at 0x0357D760>
2013-08-25 14:26:15+0200 [-] Main loop terminated.

/Tobias

···

Am 22.08.2013 05:13, schrieb jumbo...@gmail.com:

I cannot find any documentation on how to use method authSignature.

On Sunday, August 18, 2013 7:26:50 AM UTC-5, jumb...@gmail.com wrote:

    Hi there... Is there an API doc somewhere for
    AutobahnCRAServerProtocol? The CRA server demo is not working for me:

    AttributeError: class WampCraProtocol has no attribute 'deriveKey'

    It looks to me that this may have been changed to 'authSignature'
    but the parameters are different than deriveKey. Help?

--
You received this message because you are subscribed to the Google
Groups "Autobahn" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to autobahnws+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

0 Likes