HCAS#35184 Implementatie Holland Casino

svn path=/Website/branches/v2015.3/; revision=28533
This commit is contained in:
Peter Koerhuis
2016-03-17 16:20:43 +00:00
parent 14ac0c6b7c
commit b8f1c77fa6

View File

@@ -0,0 +1,38 @@
<%@ 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);
}
%>