Skip to content

Commit 0d52a09

Browse files
author
kaiyan-sheng
committed
emit authority_host only when auth_type is client_secret
1 parent cf69e56 commit 0d52a09

28 files changed

Lines changed: 52 additions & 4 deletions

File tree

packages/azure/data_stream/activitylogs/agent/stream/azure-eventhub.yml.hbs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,11 @@ client_id: {{client_id}}
1616
{{#if client_secret}}
1717
client_secret: {{client_secret}}
1818
{{/if}}
19+
{{#contains "client_secret" auth_type}}
1920
{{#if authority_host}}
2021
authority_host: {{authority_host}}
2122
{{/if}}
23+
{{/contains}}
2224
{{#if storage_account_container }}
2325
storage_account_container: {{storage_account_container}}
2426
{{else}}

packages/azure/data_stream/application_gateway/agent/stream/azure-eventhub.yml.hbs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,11 @@ client_id: {{client_id}}
1616
{{#if client_secret}}
1717
client_secret: {{client_secret}}
1818
{{/if}}
19+
{{#contains "client_secret" auth_type}}
1920
{{#if authority_host}}
2021
authority_host: {{authority_host}}
2122
{{/if}}
23+
{{/contains}}
2224
{{#if storage_account_container }}
2325
storage_account_container: {{storage_account_container}}
2426
{{else}}

packages/azure/data_stream/auditlogs/agent/stream/azure-eventhub.yml.hbs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,11 @@ client_id: {{client_id}}
1616
{{#if client_secret}}
1717
client_secret: {{client_secret}}
1818
{{/if}}
19+
{{#contains "client_secret" auth_type}}
1920
{{#if authority_host}}
2021
authority_host: {{authority_host}}
2122
{{/if}}
23+
{{/contains}}
2224
{{#if storage_account_container }}
2325
storage_account_container: {{storage_account_container}}
2426
{{else}}

packages/azure/data_stream/eventhub/agent/stream/stream.yml.hbs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,11 @@ client_id: {{client_id}}
1616
{{#if client_secret}}
1717
client_secret: {{client_secret}}
1818
{{/if}}
19+
{{#contains "client_secret" auth_type}}
1920
{{#if authority_host}}
2021
authority_host: {{authority_host}}
2122
{{/if}}
23+
{{/contains}}
2224
{{#if storage_account_container }}
2325
storage_account_container: {{storage_account_container}}
2426
{{else}}

packages/azure/data_stream/events/agent/stream/stream.yml.hbs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,11 @@ client_id: {{client_id}}
1616
{{#if client_secret}}
1717
client_secret: {{client_secret}}
1818
{{/if}}
19+
{{#contains "client_secret" auth_type}}
1920
{{#if authority_host}}
2021
authority_host: {{authority_host}}
2122
{{/if}}
23+
{{/contains}}
2224
{{#if storage_account_container }}
2325
storage_account_container: {{storage_account_container}}
2426
{{else}}

packages/azure/data_stream/firewall_logs/agent/stream/azure-eventhub.yml.hbs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,11 @@ client_id: {{client_id}}
1616
{{#if client_secret}}
1717
client_secret: {{client_secret}}
1818
{{/if}}
19+
{{#contains "client_secret" auth_type}}
1920
{{#if authority_host}}
2021
authority_host: {{authority_host}}
2122
{{/if}}
23+
{{/contains}}
2224
{{#if storage_account_container }}
2325
storage_account_container: {{storage_account_container}}
2426
{{else}}

packages/azure/data_stream/graphactivitylogs/agent/stream/azure-eventhub.yml.hbs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,11 @@ client_id: {{client_id}}
1616
{{#if client_secret}}
1717
client_secret: {{client_secret}}
1818
{{/if}}
19+
{{#contains "client_secret" auth_type}}
1920
{{#if authority_host}}
2021
authority_host: {{authority_host}}
2122
{{/if}}
23+
{{/contains}}
2224
{{#if storage_account_container}}
2325
storage_account_container: {{storage_account_container}}
2426
{{else}}

packages/azure/data_stream/identity_protection/agent/stream/azure-eventhub.yml.hbs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,11 @@ client_id: {{client_id}}
1616
{{#if client_secret}}
1717
client_secret: {{client_secret}}
1818
{{/if}}
19+
{{#contains "client_secret" auth_type}}
1920
{{#if authority_host}}
2021
authority_host: {{authority_host}}
2122
{{/if}}
23+
{{/contains}}
2224
{{#if storage_account_container }}
2325
storage_account_container: {{storage_account_container}}
2426
{{else}}

packages/azure/data_stream/platformlogs/agent/stream/azure-eventhub.yml.hbs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,11 @@ client_id: {{client_id}}
1616
{{#if client_secret}}
1717
client_secret: {{client_secret}}
1818
{{/if}}
19+
{{#contains "client_secret" auth_type}}
1920
{{#if authority_host}}
2021
authority_host: {{authority_host}}
2122
{{/if}}
23+
{{/contains}}
2224
{{#if storage_account_container }}
2325
storage_account_container: {{storage_account_container}}
2426
{{else}}

packages/azure/data_stream/provisioning/agent/stream/azure-eventhub.yml.hbs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,11 @@ client_id: {{client_id}}
1616
{{#if client_secret}}
1717
client_secret: {{client_secret}}
1818
{{/if}}
19+
{{#contains "client_secret" auth_type}}
1920
{{#if authority_host}}
2021
authority_host: {{authority_host}}
2122
{{/if}}
23+
{{/contains}}
2224
{{#if storage_account_container }}
2325
storage_account_container: {{storage_account_container}}
2426
{{else}}

0 commit comments

Comments
 (0)