Skip to content
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,9 @@
"x-ms-examples": {
"Create or Update Container App AuthConfig": {
Comment thread
njuCZ marked this conversation as resolved.
"$ref": "./examples/AuthConfigs_CreateOrUpdate.json"
},
"Create or Update Container App AuthConfig with msi blob storage token store": {
"$ref": "./examples/AuthConfigs_BlobStorageTokenStore_CreateOrUpdate.json"
}
}
},
Expand Down Expand Up @@ -474,12 +477,21 @@
"BlobStorageTokenStore": {
"description": "The configuration settings of the storage of the tokens if blob storage is used.",
"type": "object",
"required": [
"sasUrlSettingName"
],
"properties": {
"sasUrlSettingName": {
"description": "The name of the app secrets containing the SAS URL of the blob storage containing the tokens.",
"description": "The name of the app secrets containing the SAS URL of the blob storage containing the tokens. Should not be used along with blob container URI.",
"type": "string"
},
"blobContainerUri": {
"description": "The URI of the blob storage containing the tokens. Should not be used along with SAS Url.",
Comment thread
njuCZ marked this conversation as resolved.
Outdated
"type": "string"
},
"clientId": {
Comment thread
njuCZ marked this conversation as resolved.
"description": "The Client ID of a User-Assigned Managed Identity. Should not be used along with Resource ID.",
Comment thread
njuCZ marked this conversation as resolved.
Outdated
"type": "string"
},
"managedIdentityResourceId": {
"description": "The Resource ID of a User-Assigned Managed Identity. Should not be used along with Client ID.",
Comment thread
njuCZ marked this conversation as resolved.
Outdated
"type": "string"
}
}
Expand Down Expand Up @@ -1032,4 +1044,3 @@
}
]
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
{
"parameters": {
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "rg1",
"containerAppName": "myapp",
"authConfigName": "current",
"api-version": "2024-10-02-preview",
"authConfigEnvelope": {
"properties": {
"platform": {
"enabled": true
},
"globalValidation": {
"unauthenticatedClientAction": "AllowAnonymous"
},
"identityProviders": {
"facebook": {
"registration": {
"appId": "123",
"appSecretSettingName": "facebook-secret"
}
}
},
"encryptionSettings": {
"containerAppAuthEncryptionSecretName": "testEncryptionSecretName",
"containerAppAuthSigningSecretName": "testSigningSecretName"
},
"login": {
"tokenStore": {
"azureBlobStorage": {
"blobContainerUri": "https://test.blob.core.windows.net/container1",
"managedIdentityResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1"
}
}
}
}
}
},
"responses": {
"200": {
"headers": {},
"body": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.App/containerApps/myapp/authconfigs/current",
"name": "current",
"type": "Microsoft.App/containerapps/authconfigs",
"properties": {
"platform": {
"enabled": true
},
"globalValidation": {
"unauthenticatedClientAction": "AllowAnonymous"
},
"identityProviders": {
"facebook": {
"registration": {
"appId": "123",
"appSecretSettingName": "facebook-secret"
}
}
},
"encryptionSettings": {
"containerAppAuthEncryptionSecretName": "testEncryptionSecretName",
"containerAppAuthSigningSecretName": "testSigningSecretName"
},
"login": {
"tokenStore": {
"azureBlobStorage": {
"blobContainerUri": "https://test.blob.core.windows.net/container1",
"managedIdentityResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1"
}
}
}
}
}
}
}
}