Add support for MSN with X-MESSENGER-OAUTH2 SASL support.

NOTE: This requires already having the access token. It does NOT
perform any OAuth requests.
This commit is contained in:
Lance Stout
2012-01-06 23:31:58 -05:00
parent 8ef7188dae
commit c578ddeb1a
4 changed files with 33 additions and 2 deletions

View File

@@ -39,6 +39,8 @@ class feature_mechanisms(base_plugin):
values['username'] = self.xmpp.boundjid.user
if 'password' in values:
values['password'] = self.xmpp.password
if 'access_token' in values:
values['access_token'] = self.xmpp.password
mech.fulfill(values)
sasl_callback = self.config.get('sasl_callback', None)