diff --git a/README.md b/README.md index b5b5a8f..f5de86b 100644 --- a/README.md +++ b/README.md @@ -13,4 +13,4 @@ PHP (tested th php 8.0) client site: browser with javascipt (tested with google-chome Version 120.0.6099.130; mMicrosoft Edge Version 120.0.2210.91 ) #### Suggested: -- synology NAS (tested with DSM 7.0 with installed sso server package) and webserver (tested with gninx) +- synology NAS (tested with DSM 7.0 with installed sso server package) and webserver (tested with Nginx) diff --git a/config.php b/config.php index ec99747..5b76712 100644 --- a/config.php +++ b/config.php @@ -13,10 +13,10 @@ // Reinhard Fiebelkorn // ------------------------------------------------------------------------------ -define('APP_ID', 'eb3df56d6f3f11914eb6514c978346f1'); //Application ID in SSO server on Synology NAS with DSM -define('SSO_HOST', 'https://dsm.pgmr2.com');// 'https://dsm.yourserverdomain.toplevel:5001'); //Synology NAS with DSM -define('LOCAL_HOST', 'https://sso.pgmr2.com'); // Your server host -define('REDIRECT_URI', 'https://sso.pgmr2.com'); // not not really used by SSO +define('APP_ID', 'eb3df56d6f3f11914eb6514c978346fX'); //Application ID in SSO server on Synology NAS with DSM +define('SSO_HOST', 'https://sso-yourdomain.com');// 'https://dsm.yourserverdomain.toplevel:5001'); //Synology NAS with DSM +define('LOCAL_HOST', 'https://yourpagedomain.com'); // Your server host +define('REDIRECT_URI', 'https://yourpagedomain.com'); // not not really used by SSO define('SESSION_NAME', 'ServerTools'); // Name of session cookie on client browser define('SESSION_COOKIE_LIFETIME', 90); // 86400); // Lifetime of session cookie on client browser in seconds diff --git a/index.html b/index.html index 23b0314..fd41125 100644 --- a/index.html +++ b/index.html @@ -14,7 +14,7 @@ - + @@ -39,11 +39,11 @@ //synology SSO server init SYNOSSO.init({ - oauthserver_url: 'https://dsm.pgmr2.com', //synology server with sso and dsm - app_id: 'eb3df56d6f3f11914eb6514c978346f1', // App ID - redirect_uri: 'https://sso.pgmr2.com', //redirect URI not realy used - // ldap_baseDN: 'dc=sso-domain,dc=com', //necessary if more than one domain in the ldap - // domain_name: 'sso-domain.com', //necessary if more than one domain in the ldap + oauthserver_url: 'https://sso-yourdomain.com', //synology server with sso and dsm, same as config.php + app_id: 'eb3df56d6f3f11914eb6514c978346fX', // App ID , same as config.php + redirect_uri: 'https://yourpagedomain.com', //redirect URI not realy used, same as config.php + // ldap_baseDN: 'dc=sso-domain,dc=com', //necessary if more than one domain in the ldap, same as config.php + // domain_name: 'sso-domain.com', //necessary if more than one domain in the ldap, same as config.php callback: authCallback })