EntraIdApplicationResource.withScope

Method
📦 Aspire.Hosting.Azure.EntraId v17.0.0-preview.1.26567.5
interface EntraIdApplicationResource {
// ... omitted for brevity
withScope(
name: string,
description: string,
options?: EntraIdScopeOptions): EntraIdApplicationResource;
}

Signature

methodwithScopebuilder
Exposes a delegated permission scope that clients can request to call this registration as an API.
withScope(
name: string,
description: string,
options?: EntraIdScopeOptions): EntraIdApplicationResource
namestringThe scope's name, which appears in the token's scp claim, such as access_as_user.
descriptionstringWhat the scope allows, shown on the consent page.
optionsEntraIdScopeOptionsoptionalOptional settings for the scope.
EntraIdApplicationResource

Defined on

This method is defined on the following type: