Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Qlik Sense Login for internal extension mashup

I have created a mashup on my qlik sense server. It is hosted on the qlik sense server itself as an extension. The mashup uses an app that requires authentication. Is there a way to redirect to qlik sense's normal login screen (https://myqliksenseserver.com:4244/form/)‌ and then back to the mashup to handle the authentication?

All I can tell is that the normal login screen can only take a "target_id" as a parameter, that has to be an app guid. I don't believe mashups have these.

Right now when I browse to the mashup while not logged in I get an error popup saying:

An error occurred

You cannot access Qlik Sense because you have no access pass.

Then also:

Access to the app is denied: NoAvailableAccessType

Any ideas on how I can handle this?

Thank you.

4 Replies
satishkurra
Specialist II
Specialist II

Not sure if this can be done.

I'm using the same approach as you but restricting the user access in stream and APP level.

Example: Stream: Test, App: Test.qvf

Once imported your extension, will allow automatic access to users who are associated to stream Test

Hope this helps.

Thanks

Satish

Anonymous
Not applicable
Author

Yes if I login first through the hub then access the mashup it works fine. I want to be able to redirect to the login page if the user is not logged in already and then come back to the mashup after login.

Francis_Kabinoff
Former Employee
Former Employee

A few tips.

First, the target_id parameter is not an app guid, it's generated by Qlik Sense based on the redirectUri parameter on the websocket request. Any resource behind a virtual proxy can be used. So if your mashup is behind a virtual proxy (hosted on Qlik Sense server by Qlik Sense), then you're good to go. If not, then what I do is upload a simple html document to the content library which just simply redirects to my mashup. Then I set the redirectUri in the mashup config to point to that html document, which redirects to the mashup. Again, this is only necessary if your mashup is not behind a virtual proxy.

Second, the reason you are seeing the "no access pass" is because you have not allocated any tokens for "Login access." When a mashup loads, it loads some resources that require a token, and since the user doesn't have a user token before logging in, these resources are unable to load. Allocate a few tokens to "Login access" and anonymous users, and then you won't see the "no access pass" any longer, and your mashup should redirect to the auth module defined in the virtual proxy if a user is not authenticated.

Anonymous
Not applicable
Author

Francis,

I might not have mentioned that the mashup would be on the public web but secured. So assigning tokens to anonymous users would be bad. They could be easily used up.

Instead I changed my proxy to use the "Forms" authentication pattern, instead of "Windows". Now the mashup redirects to a login page and back again without issue.

This solved my problem.

Thank you.