本文整理匯總了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";
}
示例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);
}
示例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';
}
示例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();
}
示例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";
}
示例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/";
}
示例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";
}
示例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';
}
示例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";
}
示例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";
}
示例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";
}
示例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";
}
示例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";
}
示例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";
}
示例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');
}