mirror of
https://github.com/pgmr3/synologySsoClientExamplePage.git
synced 2025-12-13 13:35:49 +01:00
anonymos
This commit is contained in:
@@ -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 )
|
client site: browser with javascipt (tested with google-chome Version 120.0.6099.130; mMicrosoft Edge Version 120.0.2210.91 )
|
||||||
|
|
||||||
#### Suggested:
|
#### 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)
|
||||||
|
|||||||
@@ -13,10 +13,10 @@
|
|||||||
// Reinhard Fiebelkorn
|
// Reinhard Fiebelkorn
|
||||||
// ------------------------------------------------------------------------------
|
// ------------------------------------------------------------------------------
|
||||||
|
|
||||||
define('APP_ID', 'eb3df56d6f3f11914eb6514c978346f1'); //Application ID in SSO server on Synology NAS with DSM
|
define('APP_ID', 'eb3df56d6f3f11914eb6514c978346fX'); //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('SSO_HOST', 'https://sso-yourdomain.com');// 'https://dsm.yourserverdomain.toplevel:5001'); //Synology NAS with DSM
|
||||||
define('LOCAL_HOST', 'https://sso.pgmr2.com'); // Your server host
|
define('LOCAL_HOST', 'https://yourpagedomain.com'); // Your server host
|
||||||
define('REDIRECT_URI', 'https://sso.pgmr2.com'); // not not really used by SSO
|
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_NAME', 'ServerTools'); // Name of session cookie on client browser
|
||||||
define('SESSION_COOKIE_LIFETIME', 90); // 86400); // Lifetime of session cookie on client browser in seconds
|
define('SESSION_COOKIE_LIFETIME', 90); // 86400); // Lifetime of session cookie on client browser in seconds
|
||||||
|
|||||||
12
index.html
12
index.html
@@ -14,7 +14,7 @@
|
|||||||
<meta name="description" content="">
|
<meta name="description" content="">
|
||||||
<meta name="author" content="https://github.com/pgmr3">
|
<meta name="author" content="https://github.com/pgmr3">
|
||||||
<meta name="copyright" content="https://www.gnu.org/licenses/gpl-3.0.html" />
|
<meta name="copyright" content="https://www.gnu.org/licenses/gpl-3.0.html" />
|
||||||
<script src="https://dsm.pgmr2.com/webman/sso/synoSSO-1.0.0.js"></script>
|
<script src="https://sso-yourdomain.com/webman/sso/synoSSO-1.0.0.js"></script>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
@@ -39,11 +39,11 @@
|
|||||||
|
|
||||||
//synology SSO server init
|
//synology SSO server init
|
||||||
SYNOSSO.init({
|
SYNOSSO.init({
|
||||||
oauthserver_url: 'https://dsm.pgmr2.com', //synology server with sso and dsm
|
oauthserver_url: 'https://sso-yourdomain.com', //synology server with sso and dsm, same as config.php
|
||||||
app_id: 'eb3df56d6f3f11914eb6514c978346f1', // App ID
|
app_id: 'eb3df56d6f3f11914eb6514c978346fX', // App ID , same as config.php
|
||||||
redirect_uri: 'https://sso.pgmr2.com', //redirect URI not realy used
|
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
|
// 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
|
// domain_name: 'sso-domain.com', //necessary if more than one domain in the ldap, same as config.php
|
||||||
callback: authCallback
|
callback: authCallback
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user