Skip to main content
17-Peridot
February 23, 2021
Solved

CustomAuthenticator doesn't work for URL /Thingworx/FormLogin

  • February 23, 2021
  • 2 replies
  • 961 views

Hi, 

I created a CustomAuthenticator and want to catch the login request to redirect to another page.  however, I found the request /Thingworx/FormLogin won't be intercepted by matchesAuthRequest

matchesAuthRequest(HttpServletRequest httpRequest)

that's strange,  the other GET request , for example both of /Thingworx/Home and /Thingworx/Composer can be intercepted by this method .  

Is the URL /Thingworx/FormLogin ignored by the servlet filter intently ? 

 

Regards,

Sean

 

 

Best answer by seanccc

It's solved by adding AuthenticationFilter mapping url pattern "/FormLogin/*"  in tomcat's web.xml

2 replies

seanccc17-PeridotAuthorAnswer
17-Peridot
February 23, 2021

It's solved by adding AuthenticationFilter mapping url pattern "/FormLogin/*"  in tomcat's web.xml

Support
February 23, 2021

Hi @seanccc.

 

Since you found the solution to your problem, please mark your response as the Accepted Solution for the benefit of others with the same issue.

 

Regards.

 

--Sharon