Customer Portal Single Sign-in Token

A simple JavaScript client, which is creating Customer Person session in Customer Portal.
In order to authenticate into Customer API it uses an Single Sign-in Token generated by Home API.

Keep in mind that XTRF is needed to be accessible from the network.
Be aware of HTTPS certificates validation.
To generate one go to My Account then Access Tokens tab and click Edit button.