Here is the sample PHP code for HelpIQ SSO