Development

Changeset 21322

You must first sign up to be able to contribute.

Changeset 21322

Show
Ignore:
Timestamp:
08/22/09 01:10:14 (4 years ago)
Author:
dwhittle
Message:

ysfOpenPlugin [trunk]: ignore ssl errors in debug mode

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • plugins/ysfOpenPlugin/trunk/lib/user/ysfOAuthUser.class.php

    r20251 r21322  
    55 * file that was distributed with this source code. 
    66 */ 
     7 
     8 /** 
     9  User 
     10   -> Profile (profile -> import from openid or oauth (profile endpoints = google, yahoo, twitter) 
     11   -> Identity (openid) 
     12   -> Authorization (oauth) 
     13 **/ 
    714 
    815/** 
     
    4047  { 
    4148    parent::initialize($dispatcher, $storage, $options); 
     49 
     50    // addOAuthClient: google = oauth-google, twitter = oauth-twitter, yahoo = oauth-yahoo 
     51    // add events for auth registration / check credentials 
    4252 
    4353    // handle yap users 
     
    7080          // yahoo oauth application 
    7181          $this->setOAuthClient('yahoo', new ysfYahooOAuthClient($this->dispatcher, new OAuth($this->options['yahoo_oauth_consumer_key'], $this->options['yahoo_oauth_consumer_secret'], OAUTH_SIG_METHOD_HMACSHA1, OAUTH_AUTH_TYPE_AUTHORIZATION), array('logging' => $this->options['logging']))); 
     82          if(sfConfig::get('sf_debug')) 
     83          { 
     84            $this->getOAuthClient('yahoo')->getConsumer()->disableSSLChecks(); 
     85          } 
     86 
    7287          $oauthAccessToken = $this->getAttribute('yahoo_oauth_access_token'); 
    7388          if(isset($oauthAccessToken['oauth_token'], $oauthAccessToken['oauth_token_secret']))