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

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@localhost Output : Connected. SEND: <stream:stream xmlns:stream='http://etherx.jabber.org/streams' xmlns='jabber:client' to='localhost' version='1.0'> RECV: <?xml version='1.0'?><stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='4203649965' from='localhost' version='1.0' xml:lang='en'> RECV: <stream:features><starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/><mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'><mechanism>DIGEST-MD5</mechanism><mechanism>PLAIN</mechanism></mechanisms><register xmlns='http://jabber.org/features/iq-register'/></stream:features> SEND: <starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/> RECV: <proceed xmlns='urn:ietf:params:xml:ns:xmpp-tls'/> SEND: <stream:stream xmlns:stream='http://etherx.jabber.org/streams' xmlns='jabber:client' to='localhost' version='1.0'> RECV: <?xml version='1.0'?><stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='1885368444' from='localhost' version='1.0' xml:lang='en'> RECV: <stream:features><mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'><mechanism>DIGEST-MD5</mechanism><mechanism>PLAIN</mechanism></mechanisms><register xmlns='http://jabber.org/features/iq-register'/></stream:features> SEND: <auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='DIGEST-MD5'/> RECV: <challenge xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>bm9uY2U9IjE0NTM4NDY3NDMiLHFvcD0iYXV0aCIsY2hhcnNldD11dGYtOCxhbGdvcml0aG09bWQ1LXNlc3M=</challenge> SEND: <response xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>dXNlcm5hbWU9InRlc3RfdXNlciIsbm9uY2U9IjE0NTM4NDY3NDMiLGNoYXJzZXQ9dXRmLTgscmVhbG09ImxvY2FsaG9zdCIscW9wPWF1dGgsY25vbmNlPSJhN2RkOTY1MGFmNTA4MTU2YTc1ZjE3ODQwMzZmNTQ0OCIsbmM9MDAwMDAwMDEsZGlnZXN0LXVyaT0ieG1wcC9sb2NhbGhvc3QiLHJlc3BvbnNlPTg1MWZiZmMwYTczNWRmZDFiODZkNmMzZDg0MmI2NWQ3</response> RECV: <challenge xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>cnNwYXV0aD03ZWQ3ZWZmNTI2NWRmMTE2MmZlNTdjNGE0NDI1ZGEwMA==</challenge> SEND: <response xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/> RECV: <success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/> SEND: <stream:stream xmlns:stream='http://etherx.jabber.org/streams' xmlns='jabber:client' to='localhost' version='1.0'> RECV: <?xml version='1.0'?><stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='4179606135' from='localhost' version='1.0' xml:lang='en'> RECV: <stream:features><bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/><session xmlns='urn:ietf:params:xml:ns:xmpp-session'/></stream:features> SEND: <iq type='set' id='H_0'><bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/></iq> RECV: <iq id='H_0' type='result'><bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'><jid>test_user@localhost/26511133671220620792673712</jid></bind></iq> SEND: <iq type='set' id='H_1'><session xmlns='urn:ietf:params:xml:ns:xmpp-session'/></iq> RECV: <iq type='result' id='H_1'><session xmlns='urn:ietf:params:xml:ns:xmpp-session'/></iq> Authenticated.
participants (2)
-
Gabriel Rossetti
-
Jean-Paul Calderone