Skip to main content
1-Visitor
July 16, 2020
Question

issueAuthenticateChallenge redirect

  • July 16, 2020
  • 1 reply
  • 995 views

Hi, i'm making a auth extension and when the password is incorrect or the username doesn't exist, i call the function, setRequiresChallenge(true), on the authenticate function. but my issueAuthChallenge function is never called. Please help me, thank you.

 

@Override
	public void issueAuthenticationChallenge(HttpServletRequest httpRequest, HttpServletResponse httpResponse) throws AuthenticatorException {
	_securityLogger.info("Customized Authentication Called issueAuthenticationChallenge");
	
	String urlString= "http://localhost/";
	try{
		httpResponse.sendRedirect(urlString);
 }
 catch(IOException e)
 {
 e.printStackTrace();
 }
	}

 

1 reply

16-Pearl
July 29, 2020

Hello xotzHelper,

 

I wanted to follow up on this thread as I noticed no one was able to address this directly yet. Were you able to determine why the issueAuthChallenge function is not being called?

 

Although I do not have any specific recommendations as I have not previously developed a Custom Authentication Extension from scratch I would like to suggest reviewing the Create An Authentication Extension Guide on the ThingWorx Developer Portal. This may contain additional information that will assist you on this project.

 

-Tyler

1-Visitor
July 29, 2020

Hi! thank you for the response, i open a case with PTC to get a more personalized help from enginneers. when i get a response i inform in this thread and close this. @tmisner