RevCMS. Client to get sso ticket for Arcturus?

boz

don daddy
Mar 23, 2021
152
71
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->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=" " 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=" {sso}"></iframe>
</body>
</html>

my index.html
<?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>
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.

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:

boz

don daddy
Mar 23, 2021
152
71
Use the RevCMS edit specifically for Arcturus and you won't have these problems
Could you link me to it?
Post automatically merged:

Use the RevCMS edit specifically for Arcturus and you won't have these problems
I’m using nitro with websockets so the client.php isn’t what’s used so isn’t as straight forward as that, the client for nitro is an index.html file and doesn’t work via using {sso} on the sso: part.
Post automatically merged:

Fixed. Mod can remove
 
Last edited:

Users who are viewing this thread

Top