Versions Compared

Key

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

...

When RED executes the 'Auth Script Command' this is the typical workflow: 

  1. RED UI
    1. Save Saves the current RED Profile to disk and provide provides access to this Profile file and the connection name requiring authentication via environment variables.
    2. Run Runs the 'Auth Script Command'
  2. Authentication Script
    1. Reads the RED Profile and retrieves any required Connection details from it.
    2. Perform Performs the required authentication workflow for the connection.
    3. Updates the RED Profile on disk with refreshed Auth Tokens, Expires After mins and other Auth Configuration values as required. 
  3. RED UI
    1. Merges the updated RED Profile file back into the in-memory Profile.
    2. Completes the authentication process for the connection.
    3. Resets the internal expiry for the connection based on 'Auth Expires After' mins. 

...

  • 0 = Success, this signals to RED that it should continue with the authentication attempt.
  • Non-Zero = Failure, this signals to RED that it should abort the current authentication attemptcurrently ignored by RED, meaning the authentication process will still be attempted, except from the RED Login where RED simply returns to the login page.

Script Output 

  • All Auth Script output streams are currently ignored by RED

...