These steps follow on from Configuring Gateway Single Sign On.
For illustrative purposes these steps demonstrate Gateway SSO between the Embedded Server and itself.
Create a Form called Home.
Create a Field named username and add it to the page.
Attach a Before Form script and paste the following code:
fields.username.value = system.securityManager.getUserName();