#399 Let auth plugins set username

Reporter lancestout
Owner Waqas
Created
Updated
Stars ★ (1)  
Tags
  • Priority-Medium
  • Milestone-0.12
  • Type-Enhancement
  • Status-Accepted
  1. lancestout on

    Right now the mechanism plugins set the username portion of JIDs, but some auth plugins need to override the user specified username based on credentials (eg, exchanging an OAuth token for a JID).

  2. Waqas on

    The SASL API does not provide enough flexibility to auth plugins here. The workaround until now has been rolling your own SASL object in the plugin, but this is a lot of boilerplate. An example is mod_auth_phpbb3, which does automatic username escaping: http://hg.prosody.im/prosody-modules/file/e8eebf281405/mod_auth_phpbb3/mod_auth_phpbb3.lua#l230

    Changes
    • owner Waqas
    • tags Type-Enhancement Milestone-0.10 Status-Accepted
  3. Zash on

    Changes
    • tag Priority-Medium
  4. Zash on

    I don't believe this will make it to 0.10, bumping milestone.

    Changes
    • tags Milestone-0.11
  5. MattJ on

    I think we already have this for EXTERNAL and ANONYMOUS, so we just need to add it to PLAIN and SCRAM? Is that all? In any case, bumping feature to 0.12 due to impending release.

    Changes
    • tags Milestone-0.11 Milestone-0.12

New comment

Not published. Used for spam prevention and optional update notifications.