Iris Widget — Test
Loads embedded.js from the Iris base URL below. For a real cross-domain test, serve this page from a different origin than the widget (see instructions in the source comment). The widget appears bottom-right.
Config
Iris base URL (origin serving embedded.js + the widget)
Edit then click "Load widget script". Page origin =
Load widget script
Persona ID
Credentials (JSON) — for authenticated init / authorize
1 · init()
Call once per page load (second call is a no-op).
init() — guest
init({ credentials }) — authenticated
init({ credentials }) → getProfiles()
2 · Runtime auth (after init)
authorize({ type, code })
setAuthToken(prompt)
3 · Persona Profiles API (needs an authenticated user)
Calls api.irisona.net directly with the widget's current token. Authenticate via section 1 or 2 first.
getProfiles()
Profile ID (for updateProfile)
Content
updateProfile(id, content)