Skip to main content
14-Alexandrite
February 4, 2021
Solved

Windchill Odata Rest Endpoint with form based authentication

  • February 4, 2021
  • 1 reply
  • 3952 views

Hi,

 

in our project, customer decided to switch from basic authentication to form based authentication.

 

We have existing interfaces which were configured to use the basic authentication. 

 

I have found that adding "/protocolAuth" to the Rest Urls would work form based authentication. But this will require that the interface partners have to update their urls. Is there an another way to handle this conversion, without having to update the URLs of the interface a?

 

Thanks in advance!

Best answer by xolomon

We have managed to configure Basic Authentication for the Odata requests. 

 

We have added the in the "AuthResAdditions.xml" Data “<resource type="protocolAuth">servlet/odata</resource>” and applied "ant -f applyApacheWebAppConfig.xml " command in “Windchill/Windchill_112/Windchill/apacheConf/config" folder. The changes are applied in the "30-app-Windchill-Auth.conf" file in /Windchill/Windchill_112/HTTPServer/conf/conf.d. Beside of this, we have added in WEB.xml security constraint for the Odata URL Pattern. 

1 reply

xolomon14-AlexandriteAuthorAnswer
14-Alexandrite
June 2, 2021

We have managed to configure Basic Authentication for the Odata requests. 

 

We have added the in the "AuthResAdditions.xml" Data “<resource type="protocolAuth">servlet/odata</resource>” and applied "ant -f applyApacheWebAppConfig.xml " command in “Windchill/Windchill_112/Windchill/apacheConf/config" folder. The changes are applied in the "30-app-Windchill-Auth.conf" file in /Windchill/Windchill_112/HTTPServer/conf/conf.d. Beside of this, we have added in WEB.xml security constraint for the Odata URL Pattern.