1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Authentication Configuration Example
[]
# Primary authentication method: "connection_string" or "azure_ad"
= "azure_ad"
# Enable fallback to alternative method if primary fails
= true
# Connection String Authentication
[]
# Azure Service Bus connection string with SAS token
= "Endpoint=sb://namespace.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=..."
# Azure AD Authentication
[]
# Authentication flow type:
# - "device_code": Interactive device code flow
= "device_code"
# Required for Azure AD authentication flows
= "your-tenant-id"
= "your-client-id"
# Optional: Include client_secret only if your Azure AD app is configured as a confidential client
# For public clients (common for device code flow), omit the client_secret
# client_secret = "your-client-secret"
# Required for Azure management operations
= "your-subscription-id"
= "your-resource-group"
= "your-servicebus-namespace"
# Optional: Override default authority host
# authority_host = "https://login.microsoftonline.com"
# Optional: Override default scope
# Default is "https://servicebus.azure.net/.default" for Service Bus access
# scope = "https://servicebus.azure.net/.default"
# Example: Device Code Flow Configuration
# [auth.azure_ad]
# flow = "device_code"
# tenant_id = "your-tenant-id"
# client_id = "your-client-id"
# # Note: Include client_secret only if your Azure AD app is configured as a confidential client
# # For public clients (common for device code flow), omit the client_secret
# # client_secret = "your-client-secret"
# subscription_id = "your-subscription-id"
# resource_group = "your-resource-group"
# namespace = "your-servicebus-namespace"