Ignore:
Timestamp:
2011-12-18T19:25:44Z (8 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
64b6635
Parents:
6e9ae72
Message:

More generic OAuth support now. Should work well for all GTalk accounts now
and somewhat for MS Messenger. The fb part needs different parsing of the
authorize request, and possibly some other work.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/jabber/jabber.c

    r6e9ae72 r18c6d36  
    144144        {
    145145                jd->fd = jd->r_inpa = jd->w_inpa = -1;
     146               
     147                if( strstr( jd->server, ".live.com" ) )
     148                        jd->oauth2_service = &oauth2_service_mslive;
     149                else if( strstr( jd->server, ".facebook.com" ) )
     150                        jd->oauth2_service = &oauth2_service_facebook;
     151                else
     152                        jd->oauth2_service = &oauth2_service_google;
    146153               
    147154                /* For the first login with OAuth, we have to authenticate via the browser.
Note: See TracChangeset for help on using the changeset viewer.