Skip to content

Auth forbidden when trying to publish a feed #23

@roughnecks

Description

@roughnecks

Hello, got this issue while running the software.
I'm on Debian stable, Prosody 13.0.1

  File "/home/user/atomtopubsub/publishx.py", line 64, in create
    node_exist = await self.plugin['xep_0060'].get_node_config(server, node)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
slixmpp.exceptions.IqError: <iq type="error" from="pubsub.domain.tld" to="user@domain.tld/pubsub" id="7787b93853d542fda8ee475"><error type="auth"><forbidden xmlns="urn:ietf:params:xml:ns:xmpp-stanzas" /></error></iq>

I'm not sure why it's forbidden. Prosody's config for pubsub:

Component "pubsub.domain.tld" "pubsub"

  add_permissions = {
      ["prosody:registered"] = { "pubsub:create-node" }
  }

Obviously the user in atomtopubsub config has the "registered" role and I believe e.g. my Movim instance's users can publish right away on the same component.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions