34 references to WithApplicationIdUri
Aspire.Hosting.Azure.EntraId (4)
EntraIdResourceExtensions.cs (4)
1969/// <see cref="WithScope"/> uses this URI unless <see cref="WithApplicationIdUri(IResourceBuilder{EntraIdApplicationResource}, string)"/> sets another one. 1973/// <see cref="WithApplicationIdUri(IResourceBuilder{EntraIdApplicationResource}, string)"/> with the URI it already has. 2051: builder.WithApplicationIdUri(applicationIdUri); 2068/// Unless an application ID URI is set with <see cref="WithApplicationIdUri(IResourceBuilder{EntraIdApplicationResource}, string)"/>,
Aspire.Hosting.Azure.EntraId.Tests (30)
EntraIdApiProvisioningTests.cs (29)
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") 391.WithApplicationIdUri("api://contoso-orders") 408.WithApplicationIdUri("api://contoso-orders") 495.WithApplicationIdUri("api://contoso-items") 699var custom = builder.AddEntraIdApplication("custom-api").WithApplicationIdUri("api://contoso-orders").WithScope("orders.read", "Read orders."); 700var existing = builder.AddExistingEntraApplication("existing-api", TenantId, ClientId).WithApplicationIdUri("api://existing"); 814.WithApplicationIdUri("api://contoso-orders") 817.WithApplicationIdUri("https://contoso.onmicrosoft.com/items") 859existingApi.WithApplicationIdUri("api://contoso-items"); 925.WithApplicationIdUri("api://orders").WithScope("orders.read", "Read orders.", s => s.Id = Guid.NewGuid()); 927.WithApplicationIdUri("api://items").WithScope("items.read", "Read items.", s => s.Id = Guid.NewGuid()); 1039.WithApplicationIdUri(ApiUri) 1061.WithApplicationIdUri(ApiUri) 1079.WithApplicationIdUri(ApiUri) 1099.WithApplicationIdUri(ApiUri) 1130.WithApplicationIdUri("api://orders").WithScope("orders.read", "Read orders.", s => s.Id = Guid.NewGuid()); 1132.WithApplicationIdUri("api://items").WithScope("items.read", "Read items.", s => s.Id = Guid.NewGuid()); 1168.WithApplicationIdUri("api://items").WithScope("items.read", "Read items.", s => s.Id = Guid.NewGuid()); 1311.WithApplicationIdUri("api://shared") 1340.WithApplicationIdUri(ApiUri) 1393.WithApplicationIdUri("api://first") 1396.WithApplicationIdUri("api://second") 1542.WithApplicationIdUri("api://contoso-orders") 1558.WithApplicationIdUri("api://contoso-orders")
EntraIdPolyglotTests.cs (1)
412api.WithApplicationIdUri("api://contoso-orders")