Compare commits

2 Commits

Author SHA1 Message Date
pgmr3
cee73af885 onComplete() 2023-12-22 20:35:51 +01:00
pgmr3
c05f5a1cc0 readme 2023-12-22 18:25:05 +01:00
2 changed files with 10 additions and 3 deletions

View File

@@ -1,5 +1,5 @@
# synology sso client
=====================
======================================
oauth client example page for synology server/nas (called sso server at synology) in php and javascript
@@ -9,8 +9,8 @@ For javascript you ned only the synology script which was installed with the syn
REQUIREMENTS
------------
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 )
PHP (tested with php 8.0)
client site: browser with javascipt (tested with google-chome Version 120.0.6099.130; Microsoft Edge Version 120.0.2210.91 )
#### Suggested:
- synology NAS (tested with DSM 7.0 with installed sso server package) and webserver (tested with Nginx)

View File

@@ -78,6 +78,13 @@ include_once('../check_accesstoken.php');
window.location.replace("/my/");
}
//callback doTestLogedin()
function onComplete(logedin){ // When the check logged out completes, do this
console.log("loggedin: "+ logedin);
if (!logedin) window.location.replace("/"); // clear history
Xlogedin = logedin; //global
}
// Document fully loaded
function dokumentLoadDone(event) {
<?php