0 Replies Latest reply: Jan 5, 2018 5:17 PM by Bill Uran RSS

    Ticket Authentication in MVC application

    Bill Uran

      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&targetId=62e8abb6-2a14-4…

       

      Thoughts examples to make this succesful?