소셜 설정값 수정

This commit is contained in:
thisgun
2017-11-16 11:27:47 +09:00
parent 215d631ed9
commit 723e485755
4 changed files with 19 additions and 1 deletions
@@ -35,6 +35,10 @@ class Hybrid_Providers_Facebook extends Hybrid_Provider_Model_OAuth2 {
throw new Exception("Your application id and secret are required in order to connect to {$this->providerId}.", 4);
}
// redirect uri mismatches when authenticating with Facebook.
if (isset($this->config['redirect_uri']) && !empty($this->config['redirect_uri'])) {
$this->api->redirect_uri = $this->config['redirect_uri'];
}
}
/**
* {@inheritdoc}
+5
View File
@@ -29,6 +29,11 @@ class Hybrid_Providers_Naver extends Hybrid_Provider_Model_OAuth2
$this->api->api_base_url = "https://apis.naver.com/nidlogin/";
$this->api->authorize_url = "https://nid.naver.com/oauth2.0/authorize";
$this->api->token_url = "https://nid.naver.com/oauth2.0/token";
// redirect uri mismatches when authenticating with Naver.
if (isset($this->config['redirect_uri']) && !empty($this->config['redirect_uri'])) {
$this->api->redirect_uri = $this->config['redirect_uri'];
}
}
/**
+4
View File
@@ -34,6 +34,10 @@ class Hybrid_Providers_Payco extends Hybrid_Provider_Model_OAuth2 {
throw new Exception("Your application id and secret are required in order to connect to {$this->providerId}.", 4);
}
// redirect uri mismatches when authenticating with Payco.
if (isset($this->config['redirect_uri']) && !empty($this->config['redirect_uri'])) {
$this->api->redirect_uri = $this->config['redirect_uri'];
}
}
/**
* {@inheritdoc}
+6 -1
View File
@@ -292,7 +292,8 @@ function social_extends_get_keys($provider){
"enabled" => option_array_checked('naver', $config['cf_social_servicelist']) ? true : false,
"keys" => array(
"id" => $config['cf_naver_clientid'],
"secret" => $config['cf_naver_secret']
"secret" => $config['cf_naver_secret'],
"redirect_uri" => get_social_callbackurl('naver'),
),
);
@@ -300,6 +301,7 @@ function social_extends_get_keys($provider){
$r['Kakao'] = array(
"enabled" => option_array_checked('kakao', $config['cf_social_servicelist']) ? true : false,
"keys" => array("id" => $config['cf_kakao_rest_key'], "secret" => $config['cf_kakao_rest_key']),
"redirect_uri" => get_social_callbackurl('kakao')
);
// Facebook
@@ -307,6 +309,7 @@ function social_extends_get_keys($provider){
"enabled" => option_array_checked('facebook', $config['cf_social_servicelist']) ? true : false,
"keys" => array("id" => $config['cf_facebook_appid'], "secret" => $config['cf_facebook_secret']),
"display" => "popup",
"redirect_uri" => get_social_callbackurl('facebook'),
"trustForwarded" => false
);
@@ -324,6 +327,7 @@ function social_extends_get_keys($provider){
$r['Twitter'] = array(
"enabled" => option_array_checked('twitter', $config['cf_social_servicelist']) ? true : false,
"keys" => array("key" => $config['cf_twitter_key'], "secret" => $config['cf_twitter_secret']),
"redirect_uri" => get_social_callbackurl('twitter'),
"trustForwarded" => false
);
@@ -331,6 +335,7 @@ function social_extends_get_keys($provider){
$r['Payco'] = array(
"enabled" => option_array_checked('payco', $config['cf_social_servicelist']) ? true : false,
"keys" => array("id" => $config['cf_payco_clientid'], "secret" => $config['cf_payco_secret']),
"redirect_uri" => get_social_callbackurl('payco'),
"trustForwarded" => false
);
}