Hi All.
Working on a requirement to run a powershell script monitor against a web site that uses a Bearer Token (similar to an oauth token) for authentication rather than a username/password.
I can make this work by adding the token in plain text to the script (component monitor) in the Header > Authentication section. But you know plain text credentials in scripts not a good best practice.
A coworker mentioned that you can set up a SAM credential with a dummy username and the token for password. Then in the component monitor use that SAM credential with some kind of setting/switch/parameter to tell the component monitor use only the password not the username.
I'm guessing the parameter needed is some kind of $CREDENTIAL variable, maybe with an array designator to choose only one element. However, still researching to determine the exact settings needed.
Let me know if anyone in the community has used script parameters to use only the password from a SAM credential.
Thanks much.