當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Hybrid_Provider_Model_OAuth2類代碼示例

本文整理匯總了PHP中Hybrid_Provider_Model_OAuth2的典型用法代碼示例。如果您正苦於以下問題:PHP Hybrid_Provider_Model_OAuth2類的具體用法?PHP Hybrid_Provider_Model_OAuth2怎麽用?PHP Hybrid_Provider_Model_OAuth2使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


在下文中一共展示了Hybrid_Provider_Model_OAuth2類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: initialize

 /**
  * IDp wrappers initializer 
  */
 function initialize()
 {
     parent::initialize();
     // Provider api end-points
     $this->api->authorize_url = "https://login.mailchimp.com/oauth2/authorize";
     $this->api->token_url = "https://login.mailchimp.com/oauth2/token";
 }
開發者ID:alijaffar,項目名稱:PHP-Login-Framework,代碼行數:10,代碼來源:MailChimp.php

示例2: loginFinish

 /**
  * finish login step 
  */
 function loginFinish()
 {
     parent::loginFinish();
     $this->user->profile->emailVerified = $this->user->profile->email;
     // restore the user profile
     Hybrid_Auth::storage()->set("hauth_session.{$this->providerId}.user", $this->user);
 }
開發者ID:microbye,項目名稱:q2a-open-login,代碼行數:10,代碼來源:Google.php

示例3: initialize

 /**
  * Initializer
  */
 function initialize()
 {
     parent::initialize();
     $this->api->api_base_url = 'http://192.168.91.4:9052/';
     $this->api->authorize_url = 'http://192.168.91.4:9052/oauth/authorize';
     $this->api->token_url = 'http://192.168.91.4:9052/oauth/token';
 }
開發者ID:rockfireredmoon,項目名稱:tawsite,代碼行數:10,代碼來源:Tawd.php

示例4: loginFinish

 /**
  * finish login step
  */
 function loginFinish()
 {
     // check that the CSRF state token is the same as the one provided
     $this->checkState();
     // call the parent function
     parent::loginFinish();
 }
開發者ID:siite,項目名稱:choose-sa-cloud,代碼行數:10,代碼來源:DigitalOcean.php

示例5: initialize

 /**
  * IDp wrappers initializer
  */
 function initialize()
 {
     parent::initialize();
     $this->api->api_base_url = 'https://api.deezer.com/';
     $this->api->authorize_url = 'https://connect.deezer.com/oauth/auth.php';
     $this->api->token_url = 'https://connect.deezer.com/oauth/access_token.php';
     $this->api->curl_authenticate_method = "GET";
 }
開發者ID:DonaldNgai,項目名稱:PHPAuthentication,代碼行數:11,代碼來源:Deezer.php

示例6: initialize

 /**
  * IDp wrappers initializer
  */
 function initialize()
 {
     parent::initialize();
     // Provider api end-points
     $this->api->api_base_url = "https://www.docker.io/api/v1.1/";
     $this->api->authorize_url = "https://www.docker.io/api/v1.1/o/authorize/";
     $this->api->token_url = "https://www.docker.io/api/v1.1/o/token/";
 }
開發者ID:XDocker,項目名稱:app,代碼行數:11,代碼來源:DockerHub.php

示例7: initialize

 /**
  * IDp wrappers initializer 
  */
 function initialize()
 {
     parent::initialize();
     // Provider apis end-points
     $this->api->api_base_url = "https://api.dropbox.com/1/";
     $this->api->authorize_url = "https://www.dropbox.com/1/oauth2/authorize";
     $this->api->token_url = "https://api.dropbox.com/1/oauth2/token";
 }
開發者ID:olax,項目名稱:epetitions,代碼行數:11,代碼來源:Dropbox.php

示例8: initialize

 function initialize()
 {
     parent::initialize();
     // Provider api end-points
     $this->api->authorize_url = 'https://poniverse.net/oauth/authorize';
     $this->api->token_url = 'https://poniverse.net/oauth/access_token';
     $this->api->token_info_url = 'http://api.poniverse.net/v1/users/me';
 }
開發者ID:Lavoaster,項目名稱:PVLive,代碼行數:8,代碼來源:Poniverse.php

示例9: initialize

 /**
  * Initializer
  */
 function initialize()
 {
     parent::initialize();
     $this->api->api_base_url = 'https://api.mixcloud.com';
     $this->api->authorize_url = 'https://www.mixcloud.com/oauth/authorize';
     $this->api->token_url = 'https://www.mixcloud.com/oauth/access_token';
     $this->api->curl_authenticate_method = "POST";
 }
開發者ID:alijaffar,項目名稱:PHP-Login-Framework,代碼行數:11,代碼來源:MixCloud.php

示例10: initialize

 function initialize()
 {
     parent::initialize();
     $this->api->api_base_url = "https://login.yandex.ru/info";
     $this->api->authorize_url = "https://oauth.yandex.ru/authorize";
     $this->api->token_url = "https://oauth.yandex.ru/token";
     $this->api->sign_token_name = "oauth_token";
 }
開發者ID:bendasvadim,項目名稱:NewsModxBox,代碼行數:8,代碼來源:Yandex.php

示例11: initialize

 /**
  * IDp wrappers initializer 
  */
 function initialize()
 {
     parent::initialize();
     // Provider api end-points
     $this->api->authorize_url = "https://accounts.google.com/o/oauth2/auth";
     $this->api->token_url = "https://accounts.google.com/o/oauth2/token";
     $this->api->token_info_url = "https://www.googleapis.com/oauth2/v1/tokeninfo";
 }
開發者ID:Hoplite-Software,項目名稱:observatory,代碼行數:11,代碼來源:Google.php

示例12: initialize

 /**
  * IDp wrappers initializer 
  */
 function initialize()
 {
     parent::initialize();
     // Provider apis end-points
     $this->api->api_base_url = "https://api.foursquare.com/v2/";
     $this->api->authorize_url = "https://foursquare.com/oauth2/authenticate";
     $this->api->token_url = "https://foursquare.com/oauth2/access_token";
     $this->api->sign_token_name = "oauth_token";
 }
開發者ID:ekandreas,項目名稱:wordpress-social-login,代碼行數:12,代碼來源:Foursquare.php

示例13: initialize

 /**
  * IDp wrappers initializer 
  */
 function initialize()
 {
     parent::initialize();
     // Provider api end-points
     $this->api->api_base_url = 'https://apis.live.net/v5.0/';
     $this->api->authorize_url = 'https://login.live.com/oauth20_authorize.srf';
     $this->api->token_url = 'https://login.live.com/oauth20_token.srf';
     $this->api->curl_authenticate_method = "GET";
 }
開發者ID:noikiy,項目名稱:laravel-UI,代碼行數:12,代碼來源:Live.php

示例14: initialize

 /**
  * Initializer
  */
 function initialize()
 {
     parent::initialize();
     $this->api->api_base_url = 'https://partner.api.beatsmusic.com/';
     $this->api->authorize_url = 'https://partner.api.beatsmusic.com/v1/oauth2/authorize';
     $this->api->token_url = 'https://partner.api.beatsmusic.com/v1/oauth2/token';
     $this->api->curl_authenticate_method = "POST";
     $this->api->curl_useragent = "CWM";
 }
開發者ID:olax,項目名稱:epetitions,代碼行數:12,代碼來源:BeatsMusic.php

示例15: initialize

 /**
  * IDp wrappers initializer 
  */
 function initialize()
 {
     parent::initialize();
     // Provider api end-points
     $this->api->api_base_url = "https://disqus.com/api/3.0/";
     $this->api->authorize_url = "https://disqus.com/api/3.0/oauth/2.0/authorize";
     $this->api->token_url = "https://disqus.com/api/3.0/oauth/2.0/access_token";
     $this->api->curl_header = array('client_id: ' . $this->config["keys"]["id"], 'Accept: application/json');
 }
開發者ID:kumarsivarajan,項目名稱:yii-user-management,代碼行數:12,代碼來源:Disqus.php


注:本文中的Hybrid_Provider_Model_OAuth2類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。