Some tests.
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
export default (data) =>
|
||||
{
|
||||
const html = `<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset='utf-8'>
|
||||
<title>Multiparty Meeting</title>
|
||||
</head>
|
||||
<body>
|
||||
<script type='text/javascript'>
|
||||
let data = ${data};
|
||||
|
||||
window.opener.CLIENT.receiveFromChildWindow(data);
|
||||
|
||||
window.close();
|
||||
</script>
|
||||
</body>
|
||||
</html>`;
|
||||
|
||||
return html;
|
||||
};
|
||||
+5
-1
@@ -16,6 +16,7 @@ const Logger = require('./lib/Logger');
|
||||
const Room = require('./lib/Room');
|
||||
const base64 = require('base-64');
|
||||
const helmet = require('helmet');
|
||||
const httpHelper = require('./httpHelper');
|
||||
// auth
|
||||
const passport = require('passport');
|
||||
const { Issuer, Strategy } = require('openid-client');
|
||||
@@ -297,7 +298,10 @@ async function setupAuth(oidcIssuer)
|
||||
});
|
||||
}
|
||||
|
||||
res.sendFile(`${__dirname}/public/authCallback.html`);
|
||||
res.send(httpHelper({
|
||||
displayName : displayName,
|
||||
picture : photo
|
||||
}));
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user