18 references to WithPreAuthorizedApplication
Aspire.Hosting.Azure.EntraId (2)
EntraIdResourceExtensions.cs (2)
2562
/// <see cref="
WithPreAuthorizedApplication
"/>.
2569
/// or <paramref name="api"/> pre-authorizes the caller (<see cref="
WithPreAuthorizedApplication
"/>).
Aspire.Hosting.Azure.EntraId.Tests (16)
EntraIdApiProvisioningTests.cs (13)
528
.
WithPreAuthorizedApplication
(web, "access_as_user");
675
.
WithPreAuthorizedApplication
(web, "access_as_user")
676
.
WithPreAuthorizedApplication
(web, "other")
677
.
WithPreAuthorizedApplication
(existingClient, "access_as_user");
692
Assert.Throws<ArgumentException>(() => api.
WithPreAuthorizedApplication
(web));
693
Assert.Throws<ArgumentException>(() => api.
WithPreAuthorizedApplication
(web, "unknown"));
694
Assert.Throws<ArgumentException>(() => api.
WithPreAuthorizedApplication
(web, "retired"));
705
var exception = Assert.Throws<InvalidOperationException>(() => api.
WithPreAuthorizedApplication
(web, "access_as_user"));
711
other.
WithPreAuthorizedApplication
(otherWeb, "access_as_user");
727
Assert.Throws<InvalidOperationException>(() => c.
WithPreAuthorizedApplication
(a, "scope"));
737
.
WithPreAuthorizedApplication
(existingWeb, "access_as_user");
774
api.
WithPreAuthorizedApplication
(daemon, "access_as_user");
1365
.
WithPreAuthorizedApplication
(shared, "read")
EntraIdPolyglotTests.cs (2)
448
exportedApi.
WithPreAuthorizedApplication
(exportedClient, "access_as_user");
473
nativeApi.
WithPreAuthorizedApplication
(nativeClient, "access_as_user");
EntraIdProvisioningTests.cs (1)
198
"pre-authorization" => entra.
WithPreAuthorizedApplication
(targetApi, "read"),