Skip to main content

Embedding illow in your platform

You can embed each screen of illow within an iframe by setting the embedded flag in true in the URL. For example, if you want to display the Home screen, you can add:

<iframe id='cmp-screen' src="https://platform.illow.io?embedded=true#/main/home" ... />

If you are using your own whitelabel domain, you can use it:

<iframe id='cmp-screen' src="https://cmp.your-domain.com?embedded=true#/main/home" ... />

You will also have to pass the authentication token to skip the SSO experience every time the iframe loads. Add the following Javascript code on your platform:

window.addEventListener('message', (ev) => {
const cmp = document.getElementById('cmp-screen');
if (ev.event === 'cmpReady' && cmp !== undefined) {
cmp.contentWindow.postMessage({
partnerToken: 'your-users-auth-token',
partnerProvider: '<tenant-id>',
method: 'SIGN_IN'
});
}
});