EntraIdScope Properties
ClassProperties8 members
Describes a delegated permission scope that an API registration created by Aspire exposes.
Gets or sets what the scope allows, shown on the admin consent page.
public string Description { get; set; } Gets or sets the scope's title, shown on the admin consent page. Defaults to
EntraIdScope.Name . public string DisplayName { get; set; } Gets or sets the scope's ID, which must stay the same across deployments.
public Guid? Id { get; set; }Remarks
Aspire derives a stable ID for scopes of registrations it creates. Set the ID explicitly to adopt a scope that already exists, or for a scope of an existing registration, whose ID cannot be derived.
Gets or sets whether clients can request the scope. Defaults to
true. public bool IsEnabled { get; set; } Gets the scope's name, the value that appears in the token's
scp claim, such as access_as_user . public string Name { get; } Gets or sets whether only an administrator can consent to the scope. Defaults to
false, which lets users consent. public bool RequiresAdminConsent { get; set; } Gets or sets what the scope allows, shown on the consent page for users. When
null, EntraIdScope.Description is used. public string? UserConsentDescription { get; set; } Gets or sets the scope's title shown on the consent page for users. When
null, EntraIdScope.DisplayName is used. public string? UserConsentDisplayName { get; set; }