Changeset 21322
- Timestamp:
- 08/22/09 01:10:14 (4 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
plugins/ysfOpenPlugin/trunk/lib/user/ysfOAuthUser.class.php
r20251 r21322 5 5 * file that was distributed with this source code. 6 6 */ 7 8 /** 9 User 10 -> Profile (profile -> import from openid or oauth (profile endpoints = google, yahoo, twitter) 11 -> Identity (openid) 12 -> Authorization (oauth) 13 **/ 7 14 8 15 /** … … 40 47 { 41 48 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 42 52 43 53 // handle yap users … … 70 80 // yahoo oauth application 71 81 $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 72 87 $oauthAccessToken = $this->getAttribute('yahoo_oauth_access_token'); 73 88 if(isset($oauthAccessToken['oauth_token'], $oauthAccessToken['oauth_token_secret']))