MNNL#40813 inrichten SAML
svn path=/Website/branches/v2017.1/; revision=34864
This commit is contained in:
44
CUST/MNNL/SAML/default.asp
Normal file
44
CUST/MNNL/SAML/default.asp
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
<%@ language = "JavaScript" %>
|
||||||
|
<% /*
|
||||||
|
$Revision$
|
||||||
|
$Id$
|
||||||
|
File: cust/mnnl/saml/default.asp
|
||||||
|
Description: Single Sign On script
|
||||||
|
Parameters:
|
||||||
|
Context:
|
||||||
|
Note:
|
||||||
|
*/ %>
|
||||||
|
<%
|
||||||
|
Response.Expires=-1;
|
||||||
|
Session("customerId") = "MNNL";
|
||||||
|
ANONYMOUS_Allowed = 1;
|
||||||
|
%>
|
||||||
|
<!-- #include file="../../../appl/Shared/common.inc" -->
|
||||||
|
<!-- #include file="../../../appl/shared/login.inc" -->
|
||||||
|
<%
|
||||||
|
for (i=1; i <= Request.ServerVariables.Count; i++)
|
||||||
|
{
|
||||||
|
// __DoLog(Request.ServerVariables.key(i) + ": " + Request.ServerVariables(i));
|
||||||
|
}
|
||||||
|
|
||||||
|
var uname = String(Request.ServerVariables("HTTP_FCLTEMAIL"));
|
||||||
|
Response.Write("SAML user detected as: " + uname);
|
||||||
|
|
||||||
|
var newUrl = rooturl + "/";
|
||||||
|
var sso_qs = String(Request.ServerVariables("QUERY_STRING"));
|
||||||
|
if (sso_qs)
|
||||||
|
newUrl += "?" + sso_qs;
|
||||||
|
|
||||||
|
settings.overrule_setting("login_use_email", 1);
|
||||||
|
if (tryLogin(uname, null))
|
||||||
|
{
|
||||||
|
//Response.Write("Hoera: je bent user: " + user_key);
|
||||||
|
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