Python WAMP authorized connection

#1

Hi all!
Can not find any example of connecting from Autobahn-Python to WAMP router with authentication.

I’m look at some js samples and they work for me, but how to connect with auth from Python code?

0 Likes

#2

Otherwords, when I connect to my Twisted-WAMP server from js I pass “onchallenge” callback to handle auth request. How can I handle it in Python?

0 Likes

#3

Does this help:
https://github.com/tavendo/AutobahnPython/tree/master/examples/twisted/wamp/authentication/wampcra

0 Likes

#4

Hi Ilya,

Otherwords, when I connect to my Twisted-WAMP server from js I pass
"onchallenge" callback to handle auth request. How can I handle it in
Python?

Checkout the example Greg mentioned .. or: I've added a Python frontend to the Crossbar.io app templates for WAMP-CRA:

Simplified:
https://github.com/crossbario/crossbar/wiki/WAMP-CRA-Authentication#python-frontend

Full (behaves exactly as the JS frontend includes with the template):
https://github.com/crossbario/crossbar/blob/master/crossbar/crossbar/templates/authenticate/wampcra/client.py

/Tobias

···

Am 06.11.2014 09:11, schrieb Ilya Travkin:

0 Likes