* Fix error for sso module.

This commit is contained in:
王怡栋
2024-04-24 10:31:47 +08:00
parent f8b093e0eb
commit 2cb511cf52
+2 -2
View File
@@ -236,7 +236,7 @@ class sso extends control
$appConfig = json_decode($feishuConfig->secret);
$appID = $appConfig->appId;
$url = sprintf($this->config->sso->feishuAuthAPI, $redirectURI, $appID, $state);
$url = sprintf($this->config->sso->feishuAuthAPI, $redirectURI, $appID);
$this->locate($url);
}
@@ -268,7 +268,7 @@ class sso extends control
/* Verify the identity of the logged in user. */
$tokenResult = $this->ssoZen->getFeishuUserToken($code, $accessToken);
if($tokenResult['result'] == 'fail') return $this->showError($tokenResult['message']);
$accessToken = $tokenResult['token'];
$userToken = $tokenResult['token'];
/* Get login user information. */
$userResult = $this->ssoZen->getBindFeishuUser($userToken, $feishuConfig);