Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! X

Translate the entire conversation x

Upgrade to Windchill 13 breaks REST API

Dobi
16-Pearl

Upgrade to Windchill 13 breaks REST API

Version: Windchill 13.0

 

Use Case: Previously working REST API GET example in Windchill 12 now throws a "The requested resource [/Windchill/oauth/servlet/odata/v5/ProdMgmt/Parts] is not available" error.


Description:

I had a set of examples in Postman working when we were on our Windchill12 installation. Upgraded to Windchill 13 in December and I went to dust of the examples. Same GET calls now throw this error.

 

Dobi_0-1738365310980.png

 

For the sharp-eyed, yes this calls the v5 of the API that is deprecated. The same result, though, happens on the latest v7 version. 

 

Dobi_1-1738365448220.png

I confirmed that the Azure to securityContext.properties and wt.properties file settings are correct but Windchill 13 does have some additional lines in the securityContext file. 

 

If I try the same from the Windchill interface, everything works fine for the same URL (sans the oauth piece needed for SSO).

Dobi_2-1738365699315.png

 

 

 

 

ACCEPTED SOLUTION

Accepted Solutions

Resolved!

 

The issue was that in the OAuth setup I forgot to update the web.xml file per the instructions: https://support.ptc.com/help/windchill/r13.0.0.0/en/#page/Windchill_Help_Center/WCAdvDeployGuide/WCAdvDepAuth_ConfigAltAuth_RegisterScope.html

 

That's where the /oauth*/ bit in the URL comes in that was ultimately throwing the error. 

 

 

View solution in original post

4 REPLIES 4
HelesicPetr
22-Sapphire II
(To:Dobi)

Hi @Dobi 

I guess that you have a trouble with authentication.

 

oauth is in your address but this is not correct and system tells you that the source is not available/ not found.

reason is that you use wrong address to the server and to the API

PetrH

Hi @HelesicPetr 

 

oauth in the address was (WAS) the correct setting for OAuth2 links in Windchill 12 that work with SSO. That's the bit that I'm asking about now because it no longer works in Windchill 13. 

 

Removing that requires gives an SSO error because authentication doesn't happen with active directory. 

HelesicPetr
22-Sapphire II
(To:Dobi)

Hi @Dobi 

I guess that you should solve it on the SSO service that does the redirection the Windchill address. 

Or check if there is new version of the oauth function that might be changed.

PetrH

Resolved!

 

The issue was that in the OAuth setup I forgot to update the web.xml file per the instructions: https://support.ptc.com/help/windchill/r13.0.0.0/en/#page/Windchill_Help_Center/WCAdvDeployGuide/WCAdvDepAuth_ConfigAltAuth_RegisterScope.html

 

That's where the /oauth*/ bit in the URL comes in that was ultimately throwing the error. 

 

 

Announcements


Top Tags