EntraIdApiPermission
Classsealednet10.0
A permission, identified by name and optionally by ID, that an application requests from an API.
namespace Aspire.Hosting.Azure;
public sealed class EntraIdApiPermission{ // ...}7 members
Remarks
Section titled Remarks Delegated permissions are scopes that the API exposes and the application uses on behalf of a signed-in user. Application permissions are app roles that the API defines and the application uses as itself. They are different permissions, even when they share a name, and each needs its own consent. For a permission that isn't in an API's built-in list, Aspire can't check that the name and the ID belong together. The declaration uses the ID, while a delegated consent grant names the permission, so a name that doesn't match the ID would grant a permission that was never declared. Take both from the API's service principal.
Properties3
Section titled PropertiesIdgetGuid? Gets the permission's ID, or
null when it is resolved from the API's well-known permissions. Methods4
Section titled MethodsApplication(string) static Requests an application permission by name, using the ID that Aspire knows for the API.
Requests an application permission by name and ID.
Delegated(string) static Requests a delegated permission by name, using the ID that Aspire knows for the API.