E-mail Configuration with OAuth Token
To configure your e-mail server with the Oauth token in Windchill, set the following properties in the wt.properties file.
Property
Value
Description
com.ptc.oauth.smtp.clientID
encrypted.com.ptc.oauth.smtp.clientID
Oauth Client ID for the mail server.
com.ptc.oauth.smtp.clientSecret
encrypted.com.ptc.oauth.smtp.clientSecret
Client secret for the mail server.
com.ptc.oauth.smtp.enable
True/false
Enable OAuth configuration when the value is set to true. Default value is false.
com.ptc.oauth.smtp.scope
Scope used to generate the token. For example,: https://outlook.office365.com/.defaul
com.ptc.oauth.smtp.tokenURL
Token URL of the e-mail server used to generate the token. For example: https://login.microsoftonline.com/oauth2/v2.0/token
wt.mail.from
The address used as the default sender of email messages.
wt.mail.mailhost
The host name of the mail server.
wt.mail.smtp.starttls.enable
True/false
Enables TLS to send email when the value is set to true. Default value is false.
wt.mail.verbose
Enables detailed debug logs.
mail.smtp.port
Port used by mail server.
com.ptc.oauth.smtp.custParams
Custom parameters to fetch the token. Provide values in the specified format. For example, {"test"\:"test1","test2"\:"test3"}
Run the following command to configure and manage oauth clientID and client secret in the Windchill key store.
ant -f <WT_HOME>/bin/adminTools/sip/EncryptPasswords.xml addValueToKeyStore -DpropertyName=com.ptc.oauth.smtp.clientID -Dpassword=<cliendID>
ant -f <WT_HOME>/bin/adminTools/sip/EncryptPasswords.xml addValueToKeyStore -DpropertyName=com.ptc.oauth.smtp.clientSecret -Dpassword=<secret>
War dies hilfreich?