Persona

#1

Hello,

I have some troubles with Persona example

Exception: encountered unknown attribute 'processes' in top-level
configuration

The configuration given on the site is not the same to the one in the
example..

Hi Salvatore,

the config format changed slightly .. and the Wiki pages need updates. I will try to revise all Wiki pages for the latest format tomorrow.

In the meantime, you might try:

{
    "controller": {
    },
    "workers": [
       {
          "type": "router",
          "realms": [
             {
                "name": "realm1",
                "roles": [
                   {
                      "name": "role1",
                      "permissions": [
                         {
                            "uri": "*",
                            "publish": true,
                            "subscribe": true,
                            "call": true,
                            "register": true
                         }
                      ]
                   }
                ]
             }
          ],
          "transports": [
             {
                "type": "websocket",
                "endpoint": {
                   "type": "tcp",
                   "port": 8080
                },
                "cookie": {},
                "auth": {
                   "mozilla_persona": {
                      "role": {
                         "type": "static",
                         "value": "role1"
                      }
                   }
                }
             }
          ]
       }
    ]
}

···

Am 19.06.2014 12:02, schrieb Salvatore DI DIO:

Regards

--
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
<mailto:autobahnws+...@googlegroups.com>.
For more options, visit https://groups.google.com/d/optout.

0 Likes

#2

I am having the exact same problem and output. I can’t even run the persona example with .py from a fresh git pull.

···

On Thursday, 19 June 2014 17:07:21 UTC+1, Tobias Oberstein wrote:

Am 19.06.2014 12:02, schrieb Salvatore DI DIO:

Hello,

I have some troubles with Persona example

Exception: encountered unknown attribute ‘processes’ in top-level

configuration

The configuration given on the site is not the same to the one in the

example…

Hi Salvatore,

the config format changed slightly … and the Wiki pages need updates. I
will try to revise all Wiki pages for the latest format tomorrow.

In the meantime, you might try:

{

"controller": {

},

"workers": [

   {

      "type": "router",

      "realms": [

         {

            "name": "realm1",

            "roles": [

               {

                  "name": "role1",

                  "permissions": [

                     {

                        "uri": "*",

                        "publish": true,

                        "subscribe": true,

                        "call": true,

                        "register": true

                     }

                  ]

               }

            ]

         }

      ],

      "transports": [

         {

            "type": "websocket",

            "endpoint": {

               "type": "tcp",

               "port": 8080

            },

            "cookie": {},

            "auth": {

               "mozilla_persona": {

                  "role": {

                     "type": "static",

                     "value": "role1"

                  }

               }

            }

         }

      ]

   }

]

}

Regards

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

mailto:autobahnws+unsub...@googlegroups.com.

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

0 Likes

#3

That’s weird… I could swear that I replied to a topic that included the output. Anyway, here is what I get when I run “crossbar start” inside the “persona” folder found in “example”:

2014-10-23 23:05:38+0100 [Controller 6833] Log opened.
2014-10-23 23:05:38+0100 [Controller 6833] ============================== Crossbar.io ==============================

2014-10-23 23:05:38+0100 [Controller 6833] Crossbar.io 0.9.8-3 starting
2014-10-23 23:05:38+0100 [Controller 6833] Running on PyPy using EPollReactor reactor
2014-10-23 23:05:38+0100 [Controller 6833] Starting from node directory /home/redaborchardt/Dev/Crossbar/example/persona/.crossbar
2014-10-23 23:05:39+0100 [Controller 6833] Starting from local configuration ‘/home/redaborchardt/Dev/Crossbar/example/persona/.crossbar/config.json’
2014-10-23 23:05:39+0100 [Controller 6833] Traceback (most recent call last):
2014-10-23 23:05:39+0100 [Controller 6833] File “app_main.py”, line 75, in run_toplevel
2014-10-23 23:05:39+0100 [Controller 6833] File “/home/redaborchardt/pypy-2.3.1-linux64/bin/crossbar”, line 9, in
2014-10-23 23:05:39+0100 [Controller 6833] load_entry_point(‘crossbar==0.9.8-3’, ‘console_scripts’, ‘crossbar’)()
2014-10-23 23:05:39+0100 [Controller 6833] File “/home/redaborchardt/pypy-2.3.1-linux64/site-packages/crossbar/controller/cli.py”, line 382, in run
2014-10-23 23:05:39+0100 [Controller 6833] options.func(options)
2014-10-23 23:05:39+0100 [Controller 6833] File “/home/redaborchardt/pypy-2.3.1-linux64/site-packages/crossbar/controller/cli.py”, line 201, in run_command_start
2014-10-23 23:05:39+0100 [Controller 6833] node.start()
2014-10-23 23:05:39+0100 [Controller 6833] File “/home/redaborchardt/pypy-2.3.1-linux64/site-packages/crossbar/controller/node.py”, line 103, in start
2014-10-23 23:05:39+0100 [Controller 6833] config = checkconfig.check_config_file(configfile, silence = True)
2014-10-23 23:05:39+0100 [Controller 6833] File “/home/redaborchardt/pypy-2.3.1-linux64/site-packages/crossbar/common/checkconfig.py”, line 1511, in check_config_file
2014-10-23 23:05:39+0100 [Controller 6833] check_config(config, silence)
2014-10-23 23:05:39+0100 [Controller 6833] File “/home/redaborchardt/pypy-2.3.1-linux64/site-packages/crossbar/common/checkconfig.py”, line 1464, in check_config
2014-10-23 23:05:39+0100 [Controller 6833] raise Exception(“encountered unknown attribute ‘{}’ in top-level configuration”.format(k))
2014-10-23 23:05:39+0100 [Controller 6833] Exception: encountered unknown attribute ‘processes’ in top-level configuration

···

On Thursday, 23 October 2014 23:00:52 UTC+1, reda...@gmail.com wrote:

I am having the exact same problem and output. I can’t even run the persona example with .py from a fresh git pull.

On Thursday, 19 June 2014 17:07:21 UTC+1, Tobias Oberstein wrote:

Am 19.06.2014 12:02, schrieb Salvatore DI DIO:

Hello,

I have some troubles with Persona example

Exception: encountered unknown attribute ‘processes’ in top-level

configuration

The configuration given on the site is not the same to the one in the

example…

Hi Salvatore,

the config format changed slightly … and the Wiki pages need updates. I
will try to revise all Wiki pages for the latest format tomorrow.

In the meantime, you might try:

{

"controller": {

},

"workers": [

   {

      "type": "router",

      "realms": [

         {

            "name": "realm1",

            "roles": [

               {

                  "name": "role1",

                  "permissions": [

                     {

                        "uri": "*",

                        "publish": true,

                        "subscribe": true,

                        "call": true,

                        "register": true

                     }

                  ]

               }

            ]

         }

      ],

      "transports": [

         {

            "type": "websocket",

            "endpoint": {

               "type": "tcp",

               "port": 8080

            },

            "cookie": {},

            "auth": {

               "mozilla_persona": {

                  "role": {

                     "type": "static",

                     "value": "role1"

                  }

               }

            }

         }

      ]

   }

]

}

Regards

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

mailto:autobahnws+unsub...@googlegroups.com.

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

0 Likes

#4

I have been playing around with the config file and it now seems to pass the check. I think that the mozilla_persona is even working, but maybe all too well.
Could it be that a nodejs client also needs to authenticate itself using persona to register procedures on the wamp router? Once I enable authentication, I cannot see my guest worker registering any procedure or subscribing to any events. It doesn’t even throw up an error.

Here is my config file so far:

{
“controller”: {
},
“workers”: [
{
“type”: “router”,
“realms”: [
{
“name”: “realm1”,
“roles”: [
{
“name”: “anonymous”, <-- I also tried “com.base.user” and “"
“permissions”: [
{
“uri”: "
”,
“publish”: true,
“subscribe”: true,
“call”: true,
“register”: true
}
]
}
]
}
],
“transports”: [
{
“type”: “web”,
“endpoint”: {
“type”: “tcp”,
“port”: 8080
},
“paths”: {
“/”: {
“type”: “static”,
“directory”: “…/…/client/http_home”,
“options”: {
“enable_directory_listing”: false
}
},
“ws”: {
“type”: “websocket”,
“url” : “ws://localhost:8080/ws”,
“cookie”: {
“name”: “tarotmania”,
“length”: 16,
“max_range”: 86400
},
“auth”: {
“mozilla_persona”: {
“role”: {
“provider”: “https://verifier.login.persona.org/verify”,
“type”: “static”,
“value”: “com.base.user”
}
}
}
}
}
}
]
},
{
“type”: “guest”,
“executable”: “node”,
“arguments”: [“main.js”],
“options”: {
“workdir”: “…/node”
}
}
]
}

``

···

On Thursday, 23 October 2014 23:08:12 UTC+1, reda...@gmail.com wrote:

I am having the exact same problem and output. I can’t even run the persona example with .py from a fresh git pull.

On Thursday, 19 June 2014 17:07:21 UTC+1, Tobias Oberstein wrote:

Am 19.06.2014 12:02, schrieb Salvatore DI DIO:

Hello,

I have some troubles with Persona example

Exception: encountered unknown attribute ‘processes’ in top-level

configuration

The configuration given on the site is not the same to the one in the

example…

Hi Salvatore,

the config format changed slightly … and the Wiki pages need updates. I
will try to revise all Wiki pages for the latest format tomorrow.

In the meantime, you might try:

{

"controller": {

},

"workers": [

   {

      "type": "router",

      "realms": [

         {

            "name": "realm1",

            "roles": [

               {

                  "name": "role1",

                  "permissions": [

                     {

                        "uri": "*",

                        "publish": true,

                        "subscribe": true,

                        "call": true,

                        "register": true

                     }

                  ]

               }

            ]

         }

      ],

      "transports": [

         {

            "type": "websocket",

            "endpoint": {

               "type": "tcp",

               "port": 8080

            },

            "cookie": {},

            "auth": {

               "mozilla_persona": {

                  "role": {

                     "type": "static",

                     "value": "role1"

                  }

               }

            }

         }

      ]

   }

]

}

Regards

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

mailto:autobahnws+unsub...@googlegroups.com.

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

That’s weird… I could swear that I replied to a topic that included the output. Anyway, here is what I get when I run “crossbar start” inside the “persona” folder found in “example”:

2014-10-23 23:05:38+0100 [Controller 6833] Log opened.
2014-10-23 23:05:38+0100 [Controller 6833] ============================== Crossbar.io ==============================

2014-10-23 23:05:38+0100 [Controller 6833] Crossbar.io 0.9.8-3 starting
2014-10-23 23:05:38+0100 [Controller 6833] Running on PyPy using EPollReactor reactor
2014-10-23 23:05:38+0100 [Controller 6833] Starting from node directory /home/redaborchardt/Dev/Crossbar/example/persona/.crossbar
2014-10-23 23:05:39+0100 [Controller 6833] Starting from local configuration ‘/home/redaborchardt/Dev/Crossbar/example/persona/.crossbar/config.json’
2014-10-23 23:05:39+0100 [Controller 6833] Traceback (most recent call last):
2014-10-23 23:05:39+0100 [Controller 6833] File “app_main.py”, line 75, in run_toplevel
2014-10-23 23:05:39+0100 [Controller 6833] File “/home/redaborchardt/pypy-2.3.1-linux64/bin/crossbar”, line 9, in
2014-10-23 23:05:39+0100 [Controller 6833] load_entry_point(‘crossbar==0.9.8-3’, ‘console_scripts’, ‘crossbar’)()
2014-10-23 23:05:39+0100 [Controller 6833] File “/home/redaborchardt/pypy-2.3.1-linux64/site-packages/crossbar/controller/cli.py”, line 382, in run
2014-10-23 23:05:39+0100 [Controller 6833] options.func(options)
2014-10-23 23:05:39+0100 [Controller 6833] File “/home/redaborchardt/pypy-2.3.1-linux64/site-packages/crossbar/controller/cli.py”, line 201, in run_command_start
2014-10-23 23:05:39+0100 [Controller 6833] node.start()
2014-10-23 23:05:39+0100 [Controller 6833] File “/home/redaborchardt/pypy-2.3.1-linux64/site-packages/crossbar/controller/node.py”, line 103, in start
2014-10-23 23:05:39+0100 [Controller 6833] config = checkconfig.check_config_file(configfile, silence = True)
2014-10-23 23:05:39+0100 [Controller 6833] File “/home/redaborchardt/pypy-2.3.1-linux64/site-packages/crossbar/common/checkconfig.py”, line 1511, in check_config_file
2014-10-23 23:05:39+0100 [Controller 6833] check_config(config, silence)
2014-10-23 23:05:39+0100 [Controller 6833] File “/home/redaborchardt/pypy-2.3.1-linux64/site-packages/crossbar/common/checkconfig.py”, line 1464, in check_config
2014-10-23 23:05:39+0100 [Controller 6833] raise Exception(“encountered unknown attribute ‘{}’ in top-level configuration”.format(k))
2014-10-23 23:05:39+0100 [Controller 6833] Exception: encountered unknown attribute ‘processes’ in top-level configuration

On Thursday, 23 October 2014 23:00:52 UTC+1, reda...@gmail.com wrote:

0 Likes