<?php

/**
 * The saasid value is the GUID associated with the application. This is displayed in parentheses below the 
 * application name on the My Applications page.
 * You will need to replace the saasid value in "${saasId}" in the sample below with the GUID for your application. 
 * For example: define("SAASID","18a6ada7-8f37-4d77-86f4-173046796193");
 */
define("SAASID","${saasId}");

/**
 * Look up idpId for SSO - implement me!
 */
function getIdpId()
{
    return "testidp.admin.pingidentity.com";
}

$idpId = urlencode(getIdpId());
$saasId = urlencode(SAASID);

header("Location: https://sso.connect.pingidentity.com/sso/sp/initsso?saasid=$saasId&idpid=$idpId");

?>