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");
642
Assert.Throws<ArgumentException>(() => api.
WithPreAuthorizedApplication
(web));
643
Assert.Throws<ArgumentException>(() => api.
WithPreAuthorizedApplication
(web, "unknown"));
644
Assert.Throws<ArgumentException>(() => api.
WithPreAuthorizedApplication
(web, "retired"));
655
var exception = Assert.Throws<InvalidOperationException>(() => api.
WithPreAuthorizedApplication
(web, "access_as_user"));
661
other.
WithPreAuthorizedApplication
(otherWeb, "access_as_user");
677
Assert.Throws<InvalidOperationException>(() => c.
WithPreAuthorizedApplication
(a, "scope"));
687
.
WithPreAuthorizedApplication
(existingWeb, "access_as_user");
724
api.
WithPreAuthorizedApplication
(daemon, "access_as_user");
1315
.
WithPreAuthorizedApplication
(shared, "read")
EntraIdPolyglotTests.cs (2)
359
exportedApi.
WithPreAuthorizedApplication
(exportedClient, "access_as_user");
384
nativeApi.
WithPreAuthorizedApplication
(nativeClient, "access_as_user");