17 references to WithPreAuthorizedApplication
Aspire.Hosting.Azure.EntraId (2)
EntraIdResourceExtensions.cs (2)
2245/// <see cref="WithPreAuthorizedApplication"/>. 2252/// or <paramref name="api"/> pre-authorizes the caller (<see cref="WithPreAuthorizedApplication"/>).
Aspire.Hosting.Azure.EntraId.Tests (15)
EntraIdApiProvisioningTests.cs (13)
478.WithPreAuthorizedApplication(web, "access_as_user"); 625.WithPreAuthorizedApplication(web, "access_as_user") 626.WithPreAuthorizedApplication(web, "other") 627.WithPreAuthorizedApplication(existingClient, "access_as_user"); 642Assert.Throws<ArgumentException>(() => api.WithPreAuthorizedApplication(web)); 643Assert.Throws<ArgumentException>(() => api.WithPreAuthorizedApplication(web, "unknown")); 644Assert.Throws<ArgumentException>(() => api.WithPreAuthorizedApplication(web, "retired")); 655var exception = Assert.Throws<InvalidOperationException>(() => api.WithPreAuthorizedApplication(web, "access_as_user")); 661other.WithPreAuthorizedApplication(otherWeb, "access_as_user"); 677Assert.Throws<InvalidOperationException>(() => c.WithPreAuthorizedApplication(a, "scope")); 687.WithPreAuthorizedApplication(existingWeb, "access_as_user"); 724api.WithPreAuthorizedApplication(daemon, "access_as_user"); 1315.WithPreAuthorizedApplication(shared, "read")
EntraIdPolyglotTests.cs (2)
359exportedApi.WithPreAuthorizedApplication(exportedClient, "access_as_user"); 384nativeApi.WithPreAuthorizedApplication(nativeClient, "access_as_user");