boz
don daddy
- Mar 23, 2021
- 201
- 98
So i've tried multiple options in getting this to work yet haven't found a solution.
I've tried adding the code below to the class.template to try and fetch the sso ticket from the db, using {sso} on the index.html yet i'm still getting an error on the emu saying 'someone tried logging in with an unvalid sso ticket, connection closed'
This is my client.php and also my index.html
Client.
my index.html
Edit: I've required the global.php as that requests the class.template.php which I thought would fetch the right info to get {sso} but no.
Edit again: I’ve removed the code from the class.template as I realised {sso} is already implemented. Still having issues actually sending the sso ticket to the emulator, btw I’m using nitro with web sockets.
I've tried adding the code below to the class.template to try and fetch the sso ticket from the db, using {sso} on the index.html yet i'm still getting an error on the emu saying 'someone tried logging in with an unvalid sso ticket, connection closed'
$this->setParams('sso', $users->getInfo($_SESSION['user']['id'], 'auth_ticket'));
This is my client.php and also my index.html
Client.
<?php
require_once 'global.php';
?>
<html>
<head>
<link rel="shortcut icon" href="You must be registered for see links" type="image/vnd.microsoft.icon" />
<title>ubbo - Client</title>
<style>
body {
overflow: hidden;
color: #212529;
background: #edf1f2;
font-family: 'Open Sans', sans-serif;
-webkit-touch-callout: none; /* iOS Safari */
-webkit-user-select: none; /* Safari */
-khtml-user-select: none; /* Konqueror HTML */
-moz-user-select: none; /* Firefox */
-ms-user-select: none; /* Internet Explorer/Edge */
user-select: none;
padding: 0px;
margin: 0px;
}
#html5 {
position: fixed;
width: 100%;
height: 100%;
top: 0px;
left: 0px;
border: none;
}
</style>
</head>
<body>
<iframe id="html5" src="You must be registered for see links{sso}"></iframe>
</body>
</html>
my index.html
Any help would be appreciated, I have a hotel setup on cosmicCMS and it works perfect but I can't figure out exactly how it fetches the sso ticket, thanks.<?php
require_once 'global.php';
?>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Nitro</title>
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height, shrink-to-fit=no">
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico">
<link rel="stylesheet" href="styles.c3f2599a2705f9f2318a.css"></head>
<body>
<app-root></app-root>
<script>
var NitroConfig = {
configurationUrl: 'configuration.json',
sso: "{sso}"
};
</script>
<script src="runtime.91a02d1be9f8a4fe75ea.js" defer></script><script src="polyfills.5b2bb0157376d34211f5.js" defer></script><script src="vendor.b158af25a32354bf4d67.js" defer></script><script src="main.bdc912d2e9e5b0b4d455.js" defer></script></body>
</html>
Edit: I've required the global.php as that requests the class.template.php which I thought would fetch the right info to get {sso} but no.
Edit again: I’ve removed the code from the class.template as I realised {sso} is already implemented. Still having issues actually sending the sso ticket to the emulator, btw I’m using nitro with web sockets.
Last edited: