withApiPermissions

Method
📦 Aspire.Hosting.Azure.EntraId v17.0.0-preview.1.26567.5
interface EntraIdApplicationResource {
// ... omitted for brevity
withApiPermissions(
api: EntraIdApplicationResource,
scopeNames: string[]): EntraIdApplicationResource;
}

Signature

methodwithApiPermissionsbuilder
Declares that this registration requires delegated permissions to scopes of another registration in the AppHost.
withApiPermissions(
api: EntraIdApplicationResource,
scopeNames: string[]): EntraIdApplicationResource
apiEntraIdApplicationResourceThe registration that exposes the scopes.
scopeNamesstring[]The names of the scopes, added with `WithScope` to `api`.
EntraIdApplicationResource

Applies to

This method applies to the following types: