HCAS#35184 Implementatie Holland Casino
svn path=/Website/branches/v2015.3/; revision=28533
This commit is contained in:
38
CUST/HCAS/SAML/default.asp
Normal file
38
CUST/HCAS/SAML/default.asp
Normal 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);
|
||||
}
|
||||
|
||||
%>
|
||||
Reference in New Issue
Block a user