Now the problem is when i reach the line that calls the external service
it is not executed or at least the external service is never called. To
eliminate the external service as an error source i assign instead a
default role to the caller e.g. "user". Unfortunately the role is never
Is the role "user" configured on the realm?
Could you try out this example please (works for me):
From the crossbar logs i can determine that the branch in the code is
executed but the returned role never reaches my client.
Here is a snippet from my code:
# check if peer is external authentication service
if authid == "auth-service":
if token == "secret-token":
# otherwise check the external authentication service
print('user authentication process')
if token == 'secret':
print('got token') # <--- logged on the console, so branch is executed
You received this message because you are subscribed to the Google
Groups "Crossbar" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to crossbario+...@googlegroups.com
To post to this group, send email to cross...@googlegroups.com
To view this discussion on the web visit
For more options, visit https://groups.google.com/d/optout.