Skip to main content
1-Visitor
January 27, 2015
Question

Form based login

  • January 27, 2015
  • 1 reply
  • 1945 views
If you logout of TWC then go to https://twc.thingworx.com (which redirects to https://twc.thingworx.com/Thingworx/twc_welcome.html), you'll see a form-based login screen. This collects the Name and Password then POSTs it to a url on the server.
    • When you supply valid credentials, you're logged in and everything is good.
    My customers can't handle server-based auth (it'll confuse them) so I must do it form-based.

    Question:
    What can I do client-side (javascript, etc) to trap auth failures from the POST so I can handle it elegantly in my UI?

    Here's a fiddle that illustrates it outside the TWC site:

      1 reply

      1-Visitor
      May 19, 2016

      I am also interested in this. I want to know how to handle invalid credentials redirects in my custom UI instead of going to FormLogin Page of organization.