cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X

Translate the entire conversation x

How to send token for external API Service usage from JSP

PGLeduc
4-Participant

How to send token for external API Service usage from JSP

Hello,
I'm currently implementing an LLM chat box for Windchill 13.0 and need a secure solution to send a key to an outside service, which will be saved in the session and used to query the Windchill API to gather data. Security context is important, so I need to send a key for the current user. For example, I'm currently sending the wcadmin bearer token for testing purposes.
The code for the chat box is in a JSP file, so I need to be able to fetch the key from that context.

Thanks!

1 REPLY 1
Fadel
23-Emerald I
(To:PGLeduc)

use the wrscaller to run WRS and then use 

<Server>/Windchill/servlet/odata/v5/PTC/GetCSRFToken()

 

Fede
Announcements
Top Tags