Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
billuran
Partner - Creator
Partner - Creator

Ticket Authentication in MVC application

Hello All,

I am developing a MVC application in VS. I am using the Serene MVC template. I am wanting to do a SSO from my login form to my dashboard that has my embedded Sense objects.

I can not get the ticket authentication to work.

I have my Authentication module redirect to URI: http://localhost:60769/login.aspx

using QlikAuthNet;

namespace WebApplication1

{

    public partial class login : System.Web.UI.Page

    {

        protected void Page_Load(object sender, EventArgs e)

        {

            if (!String.IsNullOrEmpty(Request.QueryString["proxyRestUri"]))

            {

                var req = new Ticket

                {

                    UserDirectory = "HCOPT",

                    UserId = "testuser",

                };

                req.TicketRequest();

            }

            else

            {

                Response.Write("Please dont access this  way");

    }

        }

    }

}

When i go through my virtual proxy its redirected as it should but stalls here with the follwing in the URL.

http://localhost:60769/login.aspx?proxyRestUri=https%3a%2f%2fdeveloper%3a4243%2fqps%2fcustom%2f&targ...

Thoughts examples to make this succesful?

0 Replies