Qlik Community

Qlik Sense Integration, Extensions, & APIs

Discussion board where members can learn more about Integration, Extensions and API’s for Qlik Sense.

billuran
Contributor

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?

Community Browser