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).
I don't believe this will make it to 0.10, bumping milestone.
Changes
tags Milestone-0.11
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
tagsMilestone-0.11 Milestone-0.12
MattJ
on
I believe this is solved since 57192cf193c7 for PLAIN and 9184bdda22be for SCRAM.
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).
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
ChangesI don't believe this will make it to 0.10, bumping milestone.
ChangesI 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.
ChangesMilestone-0.11Milestone-0.12I believe this is solved since 57192cf193c7 for PLAIN and 9184bdda22be for SCRAM.
ChangesWaqasMattJ