Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
S
slixmpp
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 35
    • Issues 35
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 12
    • Merge Requests 12
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • poezio
  • slixmpp
  • Merge Requests
  • !153

Open
Opened Mar 30, 2021 by B T@haael
  • Report abuse
Report abuse

Fixes to allow in-band registration.

  • Overview 0
  • Commits 4
  • Pipelines 4
  • Changes 4

With the current implementation of SASL authentication, in-band registration (XEP-0077) will fail if it doesn't finish before the client is rejected.

This patch does the following:

  • A new 'SKIP' SASL mechanism is added, that simply does not send any credential. Registration plugin requests it when enabled.
  • Authentication processing blocks until it is finished, so registration does not race with it.
  • Registration stanza processing is moved after authentication, so the registration handler knows whether the authentication failed.

There are 2 ways of using the registration plugin:

  1. Authentication is performed first, and if it fails, registration is attempted. This is the default.
  2. Authentication is not performed, registration is attempted on the anonymous stream. To use it, add sasl_mech='SKIP' argument to ClientXMPP.__init__.
Assignee
Assign to
Reviewer
Request review from
slixmpp 1.8.0
Milestone
slixmpp 1.8.0
Assign milestone
Time tracking
Reference: poezio/slixmpp!153
Source branch: registration_and_authentication