{"action":"opened","issue":{"url":"https://api.github.com/repos/fritzy/SleekXMPP/issues/401","labels_url":"https://api.github.com/repos/fritzy/SleekXMPP/issues/401/labels{/name}","comments_url":"https://api.github.com/repos/fritzy/SleekXMPP/issues/401/comments","events_url":"https://api.github.com/repos/fritzy/SleekXMPP/issues/401/events","html_url":"https://github.com/fritzy/SleekXMPP/issues/401","id":110520455,"number":401,"title":"Hipchat Auth with Oauth token","user":{"login":"jinsuwang","id":7232393,"avatar_url":"https://avatars.githubusercontent.com/u/7232393?v=3","gravatar_id":"","url":"https://api.github.com/users/jinsuwang","html_url":"https://github.com/jinsuwang","followers_url":"https://api.github.com/users/jinsuwang/followers","following_url":"https://api.github.com/users/jinsuwang/following{/other_user}","gists_url":"https://api.github.com/users/jinsuwang/gists{/gist_id}","starred_url":"https://api.github.com/users/jinsuwang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jinsuwang/subscriptions","organizations_url":"https://api.github.com/users/jinsuwang/orgs","repos_url":"https://api.github.com/users/jinsuwang/repos","events_url":"https://api.github.com/users/jinsuwang/events{/privacy}","received_events_url":"https://api.github.com/users/jinsuwang/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-08T19:03:36Z","updated_at":"2015-10-08T19:03:36Z","closed_at":null,"body":"I am trying to create xmpp client for hipchat with user's token. but I got auth fail by doing this:\r\n\r\n    xmpp = ThirdPartyAuthBot(\"XXXXXXX@chat.hipchat.com\", '')  \r\n    xmpp.credentials['access_token'] = <my Token>\r\n    xmpp.connect()\r\n    xmpp.process(block=True)\r\n\r\nThe result is \r\n\r\nRECV: <failure xmlns=\"urn:ietf:params:xml:ns:xmpp-sasl\"><not-authorized /></failure>\r\nINFO     Authentication failed: not-authorized\r\nDEBUG    Event triggered: failed_auth\r\nERROR    No appropriate login method.\r\nDEBUG    Event triggered: no_auth\r\nDEBUG    Event triggered: failed_auth\r\n\r\nHere is the hipchat xmpp doc:\r\nhttps://ecosystem.atlassian.net/wiki/display/HCDEV/HipChat+XMPP+Protocol+Documentation#HipChatXMPPProtocolDocumentation-Authenticationwithoauth2token\r\n\r\nOne possible reason to cause this problem:\r\nHipchat require <auth mechanism=\"oauth2\"></auth>, but I am sending <auth mechanism=\"plain\"></auth> based on the ThirdPartyAuthBot.\r\n\r\nHow change I change auth mechanism in sleekxmpp? \r\nThanks very much.\r\n\r\nSam\r\n"}}