metajack / libstrophe

The libstrophe repository has moved to https://github.com/strophe/libstrophe
http://strophe.im/libstrophe
Other
135 stars 49 forks source link

do libstrophe support X-MESSENGER-OAUTH2 SASL mechanism ? #25

Open DeepakDuggal opened 12 years ago

DeepakDuggal commented 12 years ago

hi,

i am developing a chat client for connecting to msn. the problem is that msn allows only X-MESSENGER-OAUTH2 SASL mechanism authorization and in libstrophe ,(from what is have seen in the code) supports only plain and MD5. can u please tell how can i implement it ??

thanks in advance.. :)

metajack commented 12 years ago

i am developing a chat client for connecting to msn. the problem is that msn allows only X-MESSENGER-OAUTH2 SASL mechanism authorization and in libstrophe ,(from what is have seen in the code) supports only plain and MD5. can u please tell how can i implement it ??

You'll need to find the docs for that mechanism (and note that since it's OAuth2 you'll be needing to launch or prompt people to visit a web browser). Then to add a new mechanism to libstrophe, add code to auth.c for handling the new mechanism, and then change _auth() to select set up those handlers when that mechanism can be used. See: https://github.com/metajack/libstrophe/blob/master/src/auth.c#L454

For examples.

jack.