38 lines
983 B
Plaintext
38 lines
983 B
Plaintext
<%@ language = "JavaScript" %>
|
|
<% /*
|
|
$Revision$
|
|
$Id$
|
|
File: cust/hcas/saml/default.asp
|
|
Description: Single Sign On script
|
|
Parameters:
|
|
Context:
|
|
Note:
|
|
*/ %>
|
|
<%
|
|
Response.Expires=-1;
|
|
Session("customerId") = "HCAS";
|
|
ANONYMOUS_Allowed = 1;
|
|
%>
|
|
<!-- #include file="../../../appl/Shared/common.inc" -->
|
|
<!-- #include file="../../../appl/shared/login.inc" -->
|
|
<%
|
|
var uname = String(Request.ServerVariables("HTTP_FCLTACCOUNT"));
|
|
//__DoLog("uname: " + uname);
|
|
Response.Write("SAML user detected as: " + uname);
|
|
|
|
var newUrl = rooturl + "/";
|
|
var sso_qs = String(Request.ServerVariables("QUERY_STRING"));
|
|
if (sso_qs)
|
|
newUrl += "?" + sso_qs;
|
|
|
|
if (tryLogin(uname, null))
|
|
{
|
|
Response.Redirect(newUrl);
|
|
}
|
|
else
|
|
{ // Automatisch naar het inlogscherm
|
|
//__DoLog("SAML login not found in Facilitor: " + uname);
|
|
Response.Redirect(newUrl);
|
|
}
|
|
|
|
%> |