master
fengyuexingzi 8 years ago
parent d777338ec7
commit da873f5e3e

@ -19,7 +19,7 @@ function getAccessToken($code)
$data = array( $data = array(
'grant_type' => 'authorization_code', 'grant_type' => 'authorization_code',
'code' => $code, 'code' => $code,
'redirect_uri' => 'https://fengyuexingzi.top/auth/linkedin', 'redirect_uri' => 'https://fengyuexingzi.top/auth/linkedin/callback.php',
'client_id' => '81cc4t9fuu9bpu', 'client_id' => '81cc4t9fuu9bpu',
'client_secret' => 'GdY3ZO8LAHn8y4tX', 'client_secret' => 'GdY3ZO8LAHn8y4tX',
); );
@ -72,6 +72,7 @@ function getInfo($url, $access_token)
if ($_GET['state'] != $state) { if ($_GET['state'] != $state) {
die('hack'); die('hack');
} }
unset($_SESSION['state']);
dump($_REQUEST); dump($_REQUEST);
dump($_SESSION); dump($_SESSION);

Loading…
Cancel
Save