37 references to WithApplicationIdUri
Aspire.Hosting.Azure.EntraId (4)
EntraIdResourceExtensions.cs (4)
2287/// <see cref="WithScope"/> uses this URI unless <see cref="WithApplicationIdUri(IResourceBuilder{EntraIdApplicationResource}, string)"/> sets another one. 2291/// <see cref="WithApplicationIdUri(IResourceBuilder{EntraIdApplicationResource}, string)"/> with the URI it already has. 2366: builder.WithApplicationIdUri(applicationIdUri); 2383/// Unless an application ID URI is set with <see cref="WithApplicationIdUri(IResourceBuilder{EntraIdApplicationResource}, string)"/>,
Aspire.Hosting.Azure.EntraId.Tests (33)
EntraIdApiProvisioningTests.cs (30)
52.WithApplicationIdUri("api://contoso-orders") 202Assert.Throws<ArgumentException>(() => api.WithApplicationIdUri(uri)); 213var api = builder.AddEntraIdApplication("entra-api").WithApplicationIdUri(uri); 224.WithApplicationIdUri("api://custom") 229.WithApplicationIdUri("api://custom"); 247.WithApplicationIdUri("api://contoso-orders"); 273entra.WithApplicationIdUri("api://existing") 441.WithApplicationIdUri("api://contoso-orders") 458.WithApplicationIdUri("api://contoso-orders") 545.WithApplicationIdUri("api://contoso-items") 749var custom = builder.AddEntraIdApplication("custom-api").WithApplicationIdUri("api://contoso-orders").WithScope("orders.read", "Read orders."); 750var existing = builder.AddExistingEntraIdApplication("existing-api", TenantId, ClientId).WithApplicationIdUri("api://existing"); 864.WithApplicationIdUri("api://contoso-orders") 867.WithApplicationIdUri("https://contoso.onmicrosoft.com/items") 909existingApi.WithApplicationIdUri("api://contoso-items"); 975.WithApplicationIdUri("api://orders").WithScope("orders.read", "Read orders.", s => s.Id = Guid.NewGuid()); 977.WithApplicationIdUri("api://items").WithScope("items.read", "Read items.", s => s.Id = Guid.NewGuid()); 1089.WithApplicationIdUri(ApiUri) 1111.WithApplicationIdUri(ApiUri) 1129.WithApplicationIdUri(ApiUri) 1149.WithApplicationIdUri(ApiUri) 1180.WithApplicationIdUri("api://orders").WithScope("orders.read", "Read orders.", s => s.Id = Guid.NewGuid()); 1182.WithApplicationIdUri("api://items").WithScope("items.read", "Read items.", s => s.Id = Guid.NewGuid()); 1218.WithApplicationIdUri("api://items").WithScope("items.read", "Read items.", s => s.Id = Guid.NewGuid()); 1361.WithApplicationIdUri("api://shared") 1390.WithApplicationIdUri(ApiUri) 1443.WithApplicationIdUri("api://first") 1446.WithApplicationIdUri("api://second") 1592.WithApplicationIdUri("api://contoso-orders") 1608.WithApplicationIdUri("api://contoso-orders")
EntraIdPolyglotTests.cs (1)
503api.WithApplicationIdUri("api://contoso-orders")
EntraIdProvisioningTests.cs (2)
152.WithApplicationIdUri("api://target") 154entra.WithApplicationIdUri("api://existing")