Skip to main content
1-Visitor
January 8, 2016
Question

Is there a way to disable the authentication pop up in Windchill?

  • January 8, 2016
  • 3 replies
  • 1714 views

I have a jsp file in <WT_HOME>/netmarkets/jsp. Each time I access this JSP on my browser on a new session, it asks for the authentication pop up. Can I disable this pop up and handle the authentication within the code?

3 replies

14-Alexandrite
January 8, 2016

The answer is NO. The URL is protected by Apache which needs authentication.

If you place it under <Windchill>/codebase, it does not need authentication.

sujha1-VisitorAuthor
1-Visitor
January 8, 2016

Do you mean directly under Windchill/codebase? As of now my file is under <WT_HOME>/codebase/netmarket/jsp.

12-Amethyst
January 8, 2016

Not with the same URL.

You could, however, introduce an anonymously accessible URL of your own that establishes a current user via its own logic and then forwards the request to the JSP of interest.

How exactly this is done depends on your approach.

You could, for instance, create a subclass of wt.httpgw.filter.AbstractRemoteUserFilter (a supported class in the most recent versions of WC) that derives a user identity from the request in your own custom fashion, specify that as a filter for your own JSP, and then simply forward from that JSP to the JSP of interest.

On the other extreme, you could have a JSP containing its own logic that uses SessionHelper, etc, to set a current user and then forward to original JSP.