Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I installed QlikView 11 web application on IIS 6.1.
I need to authenticate users as Windows domain users, but I want to avoid them to insert username and password in the browser popup. I also need QV web application to be available to them also outside of the intranet. Users login to our web application with credentials that are the same as windows domain credentials in the intranet. Then with a link they open QV and I don't want them to retype their credentials.
So I found this way:
<%@ Page Language="C#" %>
<%
String username = Request["username"];
String password = Request["password"];
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>QlikView - login</title>
<script type="text/javascript" src="js/jquery-1.4.4.min.js"></script>
</head>
<body>
<script type="text/javascript" src="js/login.js"></script>
<script type="text/javascript">
$(document).ready(function () {
TryLogin(null, '<%=HttpUtility.JavaScriptStringEncode(username) %>', '<%=HttpUtility.JavaScriptStringEncode(password) %>', function (ok) {
if (ok) {
GoBack(_try);
} else if (_try != null) {
GoBack();
} else {
alert('Login Failed');
}
});
});
</script>
</body>
</html>
Using IE or Chrome, it logs in automatically using credentials we passed.
But when I use Firefox it prompts the user with the Windows authentication popup, before letting JavaScript to perform the login.
I tried to solve the issue by
but nothing worked.
I hope someone could help me. Many thanks!
Hey
I am trying to pass the windows credentials to a sharepoint site and fetch the data from sharepoint list into qlikview. Any help please?
Thanks,
qlikviewforum
Did you ever make any more progress on this?
Could you possibly share your whole ASP.NET solution instead of just that one code snippet?
Hello, unfortunately I never solved this issue.
If I remember well, there's no other code than the one I shared.
I cannot test now but from memory, you have to change some settings in the About:Config of Firefox to enable Windows integrated authentication.
Okay, I just found this, I don't know how usable is for the latest versions:
https://specopssoft.com/blog/configuring-chrome-and-firefox-for-windows-integrated-authentication/