[Twisted-Python] XMPP authentication question : when is the username sent?

Jean-Paul Calderone exarkun at divmod.com
Fri Sep 5 09:39:26 EDT 2008


On Fri, 05 Sep 2008 15:35:15 +0200, Gabriel Rossetti <gabriel.rossetti at arimaz.com> wrote:
>Hello everyone,
>
>I am trying to figure out how the auth works, for this I used the simple 
>example client. The question is, when is the username sent? In the output I 
>never see the username being sent, I see the server at some point sending it 
>to me.
>
>Thank you,
>Gabriel
>
>Username is : test_user at localhost
>
>Output :
>
> [snip]
>sasl'>dXNlcm5hbWU9InRlc3RfdXNlciIsbm9uY2U9IjE0NTM4NDY3NDMiLGNoYXJzZXQ9dXRmLTgscmVhbG09ImxvY2FsaG9zdCIscW9wPWF1dGgsY25vbmNlPSJhN2RkOTY1MGFmNTA4MTU2YTc1ZjE3ODQwMzZmNTQ0OCIsbmM9MDAwMDAwMDEsZGlnZXN0LXVyaT0ieG1wcC9sb2NhbGhvc3QiLHJlc3BvbnNlPTg1MWZiZmMwYTczNWRmZDFiODZkNmMzZDg0MmI2NWQ3</response>

There it is.  'dXNlcm...'.decode('base64') == 'username="test_user",...'

Jean-Paul




More information about the Twisted-Python mailing list