cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - New to the community? Learn how to post a question and get help from PTC and industry experts! X

how to avoid/stop default login prompt of TWX when we have FormLogin from Organization

VS_9760165
13-Aquamarine

how to avoid/stop default login prompt of TWX when we have FormLogin from Organization

Hi,

when i click on button(binds to Logout function)  then i am getting Formlogin as i mentioned URL but when i try to go back from browser then its taking twx default Login prompt. as shown below..i need to stop default login prompt.

VS_9760165_0-1610432690161.pngVS_9760165_1-1610432746036.png

Thanks,

ACCEPTED SOLUTION

Accepted Solutions

If you see my previous response, The httpbasicauthenticator is responsible to authenticate the user using username and password (login prompt which you wanted to disable). There are different ootb authenticators in ThingWorx and they work on the basis of priority. The highest priority(by default 100) is of httpbasicauthenticator and as you have disabled it so you are not getting composer/login prompt while hitting the URL. Now in this case your users can only go through Form Login authentication mechanism. So when you hit the Url like /Thingworx/FormLogin/OrgName you can login through that, once login you can hit the URL /Thingworx/Composer on the same browser on a different tab and you will be able to see the composer as well. If you want only form login authentication and when user click back button of browser after you logout, they should not see login prompt you can go ahead with this approach. Please note as you have already disabled the httpbasicauthenticator, now you will not see the login prompt and only way you can get into is using form login. 

View solution in original post

7 REPLIES 7

When you logout you are redirected to the desired FormLogin page, but that does not mean if you hit the /Thingworx/Composer url in the browser that will also take you to the Form Login Page, reason being you have ThingWorx Basic Authenticator in picture. But if you try to put the same FormLogin URL /FormLogin/Org then it should take you to the same Form Login page.

 

 

Thanks,

Mukul Narang

VS_9760165
13-Aquamarine
(To:mnarang)

Hi @mnarang 

Sorry I didn't get you , where i need to change to get FormLogin when i click on 'go back' arrow mark on browser?

 

Thanks

If you only want to have Form Login Authentication for your users and want to disable basic http authentication(Authentication pop up), you can check this:- https://www.ptc.com/en/support/article/CS307822

 

VS_9760165
13-Aquamarine
(To:mnarang)

Hi @mnarang 

 

I Can't see any basic authenticator in composer >Authenticators ...

 

you can see the attached snap.

thanks

tdixit
15-Moonstone
(To:VS_9760165)

Hi @VS_9760165 

 

You can disable basicHttpAuthenticator from the composer by following below steps

  1. Go to Authenticators
  2. Click on Filter options icon
  3. Check  "Show System Objects " > Click on apply

Now, you will be able to see  basicHttpAuthenticator in the list of authenticators and you can uncheck it . Please see the screenshot for your reference

 

Regards,

Toolika Dixit

 

 

VS_9760165
13-Aquamarine
(To:tdixit)

Hi @tdixit 

I am not able to see TWX composer after disabling HttpBasicAuthenticator.  when i hit the twx url its saying page not found....anything went wrong??

Thanks

If you see my previous response, The httpbasicauthenticator is responsible to authenticate the user using username and password (login prompt which you wanted to disable). There are different ootb authenticators in ThingWorx and they work on the basis of priority. The highest priority(by default 100) is of httpbasicauthenticator and as you have disabled it so you are not getting composer/login prompt while hitting the URL. Now in this case your users can only go through Form Login authentication mechanism. So when you hit the Url like /Thingworx/FormLogin/OrgName you can login through that, once login you can hit the URL /Thingworx/Composer on the same browser on a different tab and you will be able to see the composer as well. If you want only form login authentication and when user click back button of browser after you logout, they should not see login prompt you can go ahead with this approach. Please note as you have already disabled the httpbasicauthenticator, now you will not see the login prompt and only way you can get into is using form login. 

Announcements


Top Tags