Browse Source

added more debug info

causefx 7 years ago
parent
commit
b957e78233
2 changed files with 18 additions and 1 deletions
  1. 6 1
      api/functions/organizr-functions.php
  2. 12 0
      index.php

+ 6 - 1
api/functions/organizr-functions.php

@@ -27,12 +27,17 @@ function organizrSpecialSettings()
 			)
 		),
 		'sso' => array(
+			'misc' => array(
+				'oAuthLogin' => isset($_COOKIE['oAuth']) ? true : false,
+				'rememberMe' => $GLOBALS['rememberMe'],
+				'rememberMeDays' => $GLOBALS['rememberMeDays']
+			),
 			'plex' => array(
 				'enabled' => ($GLOBALS['ssoPlex']) ? true : false,
 				'cookie' => isset($_COOKIE['mpt']) ? true : false,
 				'machineID' => $GLOBALS['plexID'],
 				'token' => ($GLOBALS['plexToken'] !== '') ? true : false,
-				'oAuth' => ($GLOBALS['plexoAuth']) ? true : false,
+				'oAuthEnabled' => ($GLOBALS['plexoAuth']) ? true : false,
 				'backend' => ($GLOBALS['authBackend'] == 'plex') ? true : false,
 			),
 			'ombi' => array(

+ 12 - 0
index.php

@@ -143,9 +143,21 @@
                                                         data-toggle="dropdown" aria-expanded="false"><span lang="en">Commands</span>
                                                     <span class="caret"></span></button>
                                                 <ul class="dropdown-menu dropdown-menu-right">
+                                                    <li><a onclick="orgDebugList('activeInfo.settings.sso');"
+                                                           href="javascript:void(0)"
+                                                           lang="en">SSO</a></li>
                                                     <li><a onclick="orgDebugList('activeInfo.settings.sso.ombi');"
                                                            href="javascript:void(0)"
                                                            lang="en">Ombi SSO</a></li>
+                                                    <li><a onclick="orgDebugList('activeInfo.settings.sso.plex');"
+                                                           href="javascript:void(0)"
+                                                           lang="en">Plex SSO</a></li>
+                                                    <li><a onclick="orgDebugList('activeInfo.settings.sso.tautulli');"
+                                                           href="javascript:void(0)"
+                                                           lang="en">Tautulli SSO</a></li>
+                                                    <li><a onclick="orgDebugList('activeInfo.settings.sso.misc');"
+                                                           href="javascript:void(0)"
+                                                           lang="en">Misc SSO</a></li>
                                                 </ul>
                                             </div>
                                         </div>