I use a EXE/Script Advanced PowerShell script to periodically get a new OAuth2 access token for an API service. I store this token in a device with setobjectproperty, in the Bearer Token field (identified with the name paessler-rest-authentication_section-authentication_group-bearer_token).
This works, and I refer to this token from REST Custom v2 (BETA) sensors. However, I also need to lookup this token from another EXE/Script Advanced script and try to use getobjectproperty on the device to get the token, but I only get a censored value like this:
<?xml version="1.0" encoding="UTF-8" ?> <prtg> <version>22.4.81.1532+</version> <result>***</result> </prtg>
How can I get the actual token?
Add comment