diff options
author | Dmitri Agababaev <66842523+dagababaev@users.noreply.github.com> | 2020-08-12 02:05:57 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-12 02:05:57 +0300 |
commit | eee3b86de5619e132d82a0fe403185c2dde7f3b0 (patch) | |
tree | 6c4765a44401725fa6dbe2c3356e7afeff1287eb | |
parent | d494541cb4c3b87a517d560ba7947838485823a8 (diff) | |
download | Synology_SSO_integration-eee3b86de5619e132d82a0fe403185c2dde7f3b0.zip Synology_SSO_integration-eee3b86de5619e132d82a0fe403185c2dde7f3b0.tar.gz Synology_SSO_integration-eee3b86de5619e132d82a0fe403185c2dde7f3b0.tar.bz2 |
Delete SSO_Oauth.php
-rw-r--r-- | SSO_Oauth.php | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/SSO_Oauth.php b/SSO_Oauth.php deleted file mode 100644 index 19e330c..0000000 --- a/SSO_Oauth.php +++ /dev/null @@ -1,29 +0,0 @@ -<?php -session_start(); - -include_once('config.php'); - -if (isset($_GET['access_token'])) { - $access_token = $_GET['access_token']; - $resp = file_get_contents(SSO_HOST.'/webman/sso/SSOAccessToken.cgi?action=exchange&access_token='.$access_token.'&app_id='.APP_ID); - $json_resp = json_decode($resp, true); - - if($json_resp['success'] == true){ - $_SESSION['user_id'] = $json_resp["data"]["user_id"]; - header('location: '.LOCAL_HOST.'/my/'); - } - exit(); -} - -?> - -<html> -<body> - <script> - var get = window.location.hash.substr(1); - if (get) { - window.location.href = "<?=REDIRECT_URI?>?" + get; - } - </script> -</body> -</html> |