• Redacts sensitive information from a URL string, including credentials and specific query parameters.

    Parameters

    • input: string

      The URL string to be redacted.

    • config: IConfiguration

      Configuration object that contain redactUrls setting.

    Returns string

    The redacted URL string or the original string if no redaction was needed or possible.