Iframe integration: Sending commands

Available commands

Command
Params
Description
go
- path string
Change url
login-with-token
- token string
Allow login with token
call-custom-oauth-login
- service string
Allow login via oauth methods
set-user-status
- status string
Set the status of the user
logout
Log the user out of their current session

Example

1
document.querySelector('iframe').contentWindow.postMessage({
2
externalCommand: 'go',
3
path: '/admin/General'
4
}, '*')
Copied!
Last modified 6mo ago
Export as PDF
Copy link