<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic custom authenticate.aspx in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/custom-authenticate-aspx/m-p/719534#M1240963</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to integrate qlikview with our site and a custom SQL based authentication backend it uses.&amp;nbsp; To this end I started with a simplest custom Authenticate.aspx with a hardcoded username and put it into %ProgramFiles%\QlikView\Server\QlikViewClients\QlikViewAjax\ directory, replacing the one that was already there.&amp;nbsp; The contents of my Authenticate.aspx:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="c#" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_14145747602849853" jivemacro_uid="_14145747602849853" modifiedtitle="true"&gt;
&lt;P&gt;&amp;lt;%@ Import Namespace="System.IO" %&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;lt;%@ Import Namespace="QlikView.AccessPoint" %&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;lt;%@ Page Language="C#" AutoEventWireup="true" Debug="true" %&amp;gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;lt;script runat="server"&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; protected void Page_Load(object sender, EventArgs e) {&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Response.Clear();&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Context context = this.GetContext();&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; context.Response.AddVersionHeader();&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; File.AppendAllText("C:\\ProgramData\\QlikTech\\WebServer\\Log\\authenticate.log", "here");&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IUser user;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; user = new NamedUser("DOMAIN\\user", null, true);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; QlikView.AccessPoint.User.GenericAuthentication(context, user);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;
&lt;P&gt;&amp;lt;/script&amp;gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is, I don't think it's being used, as even the `File.AppendAllText` line doesn't work, and I'm getting a CONNECTION_RESET error from Authenticate.aspx in the browser (seen in dev tools in network log) after which it pops up a message that I'm not authorized to view the document and in QVWS log I can see it's falling back to anonymous, which explains the not authorized message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas on what I could be doing wrong?&amp;nbsp; Or even ideas on how to debug this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Don't know much about ASP.NET so this could be a newbie error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BTW, I got the idea and code for this from `Customized Authentication v2 0.zip` attached to one of the threads here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Jan 2026 16:26:21 GMT</pubDate>
    <dc:creator />
    <dc:date>2026-01-26T16:26:21Z</dc:date>
    <item>
      <title>custom authenticate.aspx</title>
      <link>https://community.qlik.com/t5/QlikView/custom-authenticate-aspx/m-p/719534#M1240963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to integrate qlikview with our site and a custom SQL based authentication backend it uses.&amp;nbsp; To this end I started with a simplest custom Authenticate.aspx with a hardcoded username and put it into %ProgramFiles%\QlikView\Server\QlikViewClients\QlikViewAjax\ directory, replacing the one that was already there.&amp;nbsp; The contents of my Authenticate.aspx:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="c#" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_14145747602849853" jivemacro_uid="_14145747602849853" modifiedtitle="true"&gt;
&lt;P&gt;&amp;lt;%@ Import Namespace="System.IO" %&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;lt;%@ Import Namespace="QlikView.AccessPoint" %&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;lt;%@ Page Language="C#" AutoEventWireup="true" Debug="true" %&amp;gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;lt;script runat="server"&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; protected void Page_Load(object sender, EventArgs e) {&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Response.Clear();&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Context context = this.GetContext();&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; context.Response.AddVersionHeader();&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; File.AppendAllText("C:\\ProgramData\\QlikTech\\WebServer\\Log\\authenticate.log", "here");&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IUser user;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; user = new NamedUser("DOMAIN\\user", null, true);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; QlikView.AccessPoint.User.GenericAuthentication(context, user);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;
&lt;P&gt;&amp;lt;/script&amp;gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is, I don't think it's being used, as even the `File.AppendAllText` line doesn't work, and I'm getting a CONNECTION_RESET error from Authenticate.aspx in the browser (seen in dev tools in network log) after which it pops up a message that I'm not authorized to view the document and in QVWS log I can see it's falling back to anonymous, which explains the not authorized message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas on what I could be doing wrong?&amp;nbsp; Or even ideas on how to debug this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Don't know much about ASP.NET so this could be a newbie error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BTW, I got the idea and code for this from `Customized Authentication v2 0.zip` attached to one of the threads here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2026 16:26:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/custom-authenticate-aspx/m-p/719534#M1240963</guid>
      <dc:creator />
      <dc:date>2026-01-26T16:26:21Z</dc:date>
    </item>
  </channel>
</rss>

