libstrophe icon indicating copy to clipboard operation
libstrophe copied to clipboard

do libstrophe support X-MESSENGER-OAUTH2 SASL mechanism ?

Open DeepakDuggal opened this issue 13 years ago • 1 comments

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.. :)

DeepakDuggal avatar Jul 02 '12 12:07 DeepakDuggal

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.

metajack avatar Jul 02 '12 13:07 metajack