Skip to content

How To Apply Transform To Only One Destination #2055

Discussion options

You must be logged in to vote

I took an alternative approach, I added metadata in destinations that require authentication.
And in a custom transformation, I added header values if there is a definition for selected destination.

My config;

"Clusters": {
  "cluster1": {
    "Destinations": {
      "destination1": {
        "Address": "https://destination1.org"
      },
      "destination2_withAuth": {
        "Address": "https://destination2.net",
        "Metadata": {
          "RequestHeader.Append[0]": "Authorization=Bearer SOME_BEARER_TOKEN",
          "RequestHeader.Append[1]": "SOME_OTHER_KEY=SOME_OTHER_VALUE"
        }
      }
    }
  }
}

Transform;

.AddTransforms(transformBuildContext =>
{
    transformBuildCo…

Replies: 2 comments 7 replies

Comment options

You must be logged in to vote
3 replies
@farukterzioglu
Comment options

@farukterzioglu
Comment options

@Tratcher
Comment options

Comment options

You must be logged in to vote
4 replies
@farukterzioglu
Comment options

@Tratcher
Comment options

@farukterzioglu
Comment options

@farukterzioglu
Comment options

Answer selected by Tratcher
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants