Skip to main content
1-Visitor
Jan 8, 2016 11:50 AM UTC
Question

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

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

17-Peridot
Jan 8, 2016 12:39 PM UTC

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.

Translate
sujha1-VisitorAuthor
1-Visitor
Jan 8, 2016 4:12 PM UTC

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

Translate
12-Amethyst
Jan 8, 2016 12:46 PM UTC

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.

Translate