8 references to GetScopeUri
Aspire.Hosting.Azure.EntraId (3)
EntraIdApplicationResource.cs (1)
845
/// the registration is created. Use <see cref="
GetScopeUri
(string)"/> to refer to a scope's full URI in either case.
EntraIdResourceExtensions.cs (2)
2010
/// <see cref="EntraIdApplicationResource.
GetScopeUri
(string)"/> uses the URI to build scope names for callers.
2184
return builder.Resource.
GetScopeUri
(scopeName);
Aspire.Hosting.Azure.EntraId.Tests (5)
EntraIdApiProvisioningTests.cs (5)
705
Assert.Equal("{created-api.outputs.applicationIdUri}/access_as_user", created.Resource.
GetScopeUri
("access_as_user").ValueExpression);
706
Assert.Equal("api://contoso-orders/orders.read", custom.Resource.
GetScopeUri
("orders.read").ValueExpression);
707
Assert.Equal("api://existing/items.read", existing.Resource.
GetScopeUri
("items.read").ValueExpression);
708
Assert.Throws<ArgumentException>(() => created.Resource.
GetScopeUri
("unknown"));
709
Assert.Throws<InvalidOperationException>(() => existingWithoutUri.Resource.
GetScopeUri
("items.read"));