#399 Let auth plugins set username

Reporter lancestout
Owner Waqas
Created
Updated
Stars ★ (1)  
Tags
  • Milestone-0.11
  • Type-Enhancement
  • Priority-Medium
  • 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

New comment