<?

/**
 * Caveats to get the SSO login button to display
 * 
 * /usr/local/emhttp/auth-request.php must be updated to include the exact URLs of anything that is being loaded.
 * Otherwise, the request for the asset will be blocked and redirected to /login.
 * 
 * The modification of these files should be done via the plugin's install script.
 */
require_once("$docroot/plugins/dynamix.my.servers/include/state.php");
require_once("$docroot/plugins/dynamix.my.servers/include/web-components-extractor.php");

$serverState = new ServerState();

$wcExtractor = WebComponentsExtractor::getInstance();
echo $wcExtractor->getScriptTagHtml();
?>

<unraid-sso-button ssoenabled="<?= $serverState->ssoEnabled ? "true" : "false" ?>"></unraid-sso-button>