Using Application, ApplicationSession, etc.

#1

I’m attempting to create a “long-lived” gui (pyqt) client that can do repeated cycles of [connect / authenticate / do stuff / disconnect]. There is an excellent pyqt / autobahn example for the “gauges” demo that uses ApplicationRunner, but it does not authenticate so it doesn’t need a customized ApplicationSession like the authentication examples do. In looking at the autobahn.twisted.wamp module, it appears that the Application class is recommended ("… a simple way of creating, debugging and running WAMP application components.") – however, all the authentication examples simply create ApplicationSession instances and run them using ApplicationRunner. Application uses the special _ApplicationSession class to create its sessions – what would be the recommended practice for using Application with a subclass of ApplicationSession that does an authentication dance … override the Application.call method and use the subclassed ApplicationSession instead of _ApplicationSession?

TIA,
Steve

0 Likes

#2

Hey Stephen,

I played around with CRA auth back about a year ago but I don’t think much has changed. I think the Application class they use in the demo’s is just a wrapper for ApplicationRunner. This confused me at first too.

Mostly CRA is configured on the router config json and in the onJoin event in autobahn: http://crossbar.io/docs/Challenge-Response-Authentication/

Hope this helps,

Dave

0 Likes

#3

Hey Stephen,

          I played around with CRA auth back about a year ago but

I don’t think much has changed. I think the Application
class they use in the demo’s is just a wrapper for
ApplicationRunner. This confused me at first too.

          Mostly CRA is configured on the router config json and

in the onJoin event in
autobahn:

Hope this helps,

Dave

      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 .
To post to this group, send email to .
To view this discussion on the web visit .
For more options, visit .
` Thanks, Dave – I hadn’t noticed that in the Crossbar
docs, I had just been

    reading the Autobahn/Python docs.  That helps a lot!

    Cheers,

    Steve
···

http://crossbar.io/docs/Challenge-Response-Authentication/autobahnws+...@googlegroups.com
autob...@googlegroups.com
https://groups.google.com/d/msgid/autobahnws/1041837a-f0d6-45b4-aae9-443bf698de3c%40googlegroups.com
https://groups.google.com/d/optout

0 Likes