Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Tip
titleTip

The users' AppData location can be found by typing %APPDATA% into the address bar of a Windows browser and pressing enter.

Using OAuth or similar authentication methods

For some authentication methods you may need to include an access token in your connections. This is achieved running an Authorization script command that adds an encrypted access token or other encrypted parameters to your profile file, these tokens and parameters are used as environment variables in your connection strings. You can also set a timer to refresh your connections and tokens; the timer will execute script again modifying the profile with new tokens or parameters. If you use expiring tokens with a scheduler, you can create a script to refresh your tokens and update your scheduler profile records, see the Scheduler Configuration section for more details.

This would involve the following general steps to be implemented in a script:

  1. Log in to a server and get a new token (this should be a non-interactive process for the Scheduler).
  2. On RED startup, run a script that gets the tokens and sets environment variables you can use as connection parameters.
  3. The script saves tokens and parameters in the profile file in an encrypted form and then reloads the profile file.
  4. After the above profile record is updated, any further scheduler tasks will pick up the new token.

Tips for Using OAuth or similar authentication methods

...