Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

component cannot be started with role in config #507

Closed
goeddea opened this issue Nov 5, 2015 · 5 comments
Closed

component cannot be started with role in config #507

goeddea opened this issue Nov 5, 2015 · 5 comments

Comments

@goeddea
Copy link
Contributor

goeddea commented Nov 5, 2015

from http://stackoverflow.com/questions/33504822/how-to-set-component-role-in-autobahn

The documentation claims that a role can be set on a router component through the attribute role in the config. This, however, does not pass a config check.

To replicate, just add role to hello:python

{
           "type": "class",
           "classname": "hello.hello.AppSession",
           "realm": "realm1",
           "role": "anonymous",

and then do crossbar check

@goeddea goeddea added the bug label Nov 5, 2015
@meejah meejah added the docs label Nov 5, 2015
@meejah
Copy link
Contributor

meejah commented Nov 5, 2015

I believe the "role" is only valid for "in-router" components? Not for components in a container. For example, see the authenticate/wampcra router configuration in crossbarexamples.

It's not completely clear in the stackoverflow question which case this is.

In any case, the documentation should be clarified on this point :)

@meejah
Copy link
Contributor

meejah commented Nov 5, 2015

For components in containers, you would assign the role via authentication.

@meejah
Copy link
Contributor

meejah commented Nov 5, 2015

I'm going to leave this open for now, as I think all the authentication documentation needs a bit of an overhaul. For one thing, you have to dig into "Administration" to find it -- there should at least be a pointer in the "programming guide" describing both sides ("client" and "server"/router). Probably as its own heading alongside Pub/Sub and RPC?

Orthogonal to the above, it would probably be nice to provide a way to "merely configure" the client-side credentials. Currently, you have to put in quite a bit of boilerplate, overriding onConnect and onChallenge just to put in your secret -- a way to add "authid" and "secret" or similar to the component configuration somewhere would be a big win here, I think (and be analogous to the "static" credentials on the router side).

@meejah
Copy link
Contributor

meejah commented Nov 5, 2015

Related: crossbario/autobahn-python#491 (although I don't think the details of how the secrets are configured in that PR are necessarily very good).

@oberstet
Copy link
Contributor

oberstet commented Nov 6, 2015

I believe the "role" is only valid for "in-router" components? Not for components in a container.

correct

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants