diff options
author | Lance Stout <lancestout@gmail.com> | 2012-08-17 10:17:35 -0700 |
---|---|---|
committer | Lance Stout <lancestout@gmail.com> | 2012-08-17 10:17:35 -0700 |
commit | 8a03bd72ae5d07ebee2bcd13e66441a94edd4f1a (patch) | |
tree | 676dcff039486089e87af14903b52b2465424119 /sleekxmpp/basexmpp.py | |
parent | f0e1fc5aadcde96a8c8e776c77dd80e91368d216 (diff) | |
download | slixmpp-8a03bd72ae5d07ebee2bcd13e66441a94edd4f1a.tar.gz slixmpp-8a03bd72ae5d07ebee2bcd13e66441a94edd4f1a.tar.bz2 slixmpp-8a03bd72ae5d07ebee2bcd13e66441a94edd4f1a.tar.xz slixmpp-8a03bd72ae5d07ebee2bcd13e66441a94edd4f1a.zip |
Ensure that auth is done based on the original, requested JID and not on the bound JID.
Diffstat (limited to 'sleekxmpp/basexmpp.py')
-rw-r--r-- | sleekxmpp/basexmpp.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sleekxmpp/basexmpp.py b/sleekxmpp/basexmpp.py index 9e5b9bbf..282c0c31 100644 --- a/sleekxmpp/basexmpp.py +++ b/sleekxmpp/basexmpp.py @@ -68,7 +68,12 @@ class BaseXMPP(XMLStream): #: An identifier for the stream as given by the server. self.stream_id = None - #: The JabberID (JID) used by this connection. + #: The JabberID (JID) requested for this connection. + self.requested_jid = JID(jid) + + #: The JabberID (JID) used by this connection, + #: as set after session binding. This may even be a + #: different bare JID than what was requested. self.boundjid = JID(jid) self._expected_server_name = self.boundjid.host |