Skip to main content
July 15, NEW Customer Portal: Initial launch will improve how you submit Support Cases. IMPORTANT DETAILS
Showing results for 
Search instead for 
Did you mean: 
Partner - Creator
Partner - Creator

Web Portal Login to Authenticate qliksense User

We have a QAP Server Installed on Windows Server 2012 R2. and We have a Web Portal Running on Apache server . Web Portal is developed on PHP.  With the help of Single Configurator ( Iframe ) we have Embedded a Sheet on Company Web Poratal. if Cust want to access a Poratal they Login to Web portal with their credential . Same User Id we have in Qliksense user. But When User si loging in  the Web Poratal . Qliksense again asking for Qliksense Aunthentication window asking again for Id and Password. So how can we do that if customer login to web Portal Qliksense should not ask for Id and Password again. and able to view qliksense sheet directly.

I have checked certain Web ticketing and header Authentication Blog. but not able to Achieve this with PHP Coding.

Can Someone help me on this.and if can share any PHP Code how it can work.

2 Replies
Partner - Creator III
Partner - Creator III

Hi Brijeshma,

did you find a solution for your problem?

I do have the same problem.

best regards

Do or Do Not. There is no try!
Partner - Contributor
Partner - Contributor

I'm having the same issue...

I've set up an iFrame in my test portal site, using VB.Net code (which is what my customers portal is written in):

<iframe id="urIframe" style="width: 1077px; height: 600px" runat="server" />

And here is my code:

     'Dim impersonationContext As System.Security.Principal.WindowsImpersonationContext
     Dim currentWindowsIdentity As System.Security.Principal.WindowsIdentity

     currentWindowsIdentity = CType(User.Identity, System.Security.Principal.WindowsIdentity)
     'impersonationContext = currentWindowsIdentity.Impersonate

     'If impersonateValidUser(ServiceAccount, "domain", ServiceAccountPwd) Then
          ' Create a request for the URL.
          Dim MyCreds As New NetworkCredential("{DOMAIN}\{USER}", "{PASSWORD}")
          Dim mycache As New CredentialCache
          Dim Url As String = "{QLIK Report URL}"
          Dim myFullUri = New Uri(Url)
          mycache.Add(New Uri(myFullUri.Scheme & "://" & myFullUri.Authority), "Basic", MyCreds)
          Dim request As WebRequest = WebRequest.Create(Url)
          request.Credentials = mycache

          Dim response As WebResponse = CType(request.GetResponse(), WebResponse)

          urIframe.Attributes.Add("src", response.ResponseUri.AbsoluteUri)

     Catch ex As Exception
          Label1.Text = ex.ToString()
     End Try

When I navigate directly to the URL, I get a pop-up logon window but when I execute my code above, it puts a Qlik logon screen in the iFrame, however, it does not automatically logon to Qlik.