mirror of
https://github.com/pgmr3/synologySsoClientExamplePage.git
synced 2025-12-14 22:15:49 +01:00
Compare commits
2 Commits
sso-server
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cee73af885 | ||
|
|
c05f5a1cc0 |
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user