1 instantiation of EntraIdScope
Aspire.Hosting.Azure.EntraId (1)
EntraIdResourceExtensions.cs (1)
1668var scope = new EntraIdScope(name, description);
24 references to EntraIdScope
Aspire.Hosting.Azure.EntraId (24)
EntraIdApi.cs (5)
415/// reads its ID when the template is generated, because <see cref="EntraIdScope.Id"/> can still be set after the permission is declared and 422private readonly EntraIdScope? _scope; 424private EntraIdResolvedPermission(EntraIdPermissionType type, string name, Guid? fixedId, EntraIdApplicationResource? owner, EntraIdScope? scope) 440public EntraIdScope? Scope => _scope; 444public static EntraIdResolvedPermission ForScope(EntraIdApplicationResource owner, EntraIdScope scope) =>
EntraIdApiAccess.cs (1)
11internal sealed record EntraIdPreAuthorizedClient(EntraIdApplicationResource Client, IReadOnlyList<EntraIdScope> Scopes);
EntraIdApplicationResource.cs (7)
216foreach (var scope in access.Declared.Select(static p => p.Scope).OfType<EntraIdScope>().Where(static s => !s.IsEnabled)) 226foreach (var scope in preAuthorized.Scopes.Where(static s => !s.IsEnabled)) 798public IReadOnlyList<EntraIdScope> Scopes => _scopes; 800private readonly List<EntraIdScope> _scopes = []; 843internal void AddScope(EntraIdScope scope) => _scopes.Add(scope); 859internal Guid GetScopeId(EntraIdScope scope)
EntraIdResourceExtensions.cs (9)
1624/// The name is invalid or already used by another scope, or the explicit <see cref="EntraIdScope.Id"/> is already used by another scope. 1634/// To retire a scope, set <see cref="EntraIdScope.IsEnabled"/> to <see langword="false"/> and deploy, and remove the scope in a later deployment. 1638/// Set <see cref="EntraIdScope.Id"/> to the ID of the scope that the registration defines. 1651Action<EntraIdScope>? configure = null) 1668var scope = new EntraIdScope(name, description); 1875foreach (var scope in scopes) 1946private static EntraIdScope[] FindScopes(EntraIdApplicationResource api, string[] scopeNames, string parameterName) 1953var scopes = new List<EntraIdScope>(scopeNames.Length); 1958var scope = api.Scopes.FirstOrDefault(s => string.Equals(s.Name, name, StringComparison.Ordinal))
Provisioning\EntraIdApiProvisioning.cs (2)
88foreach (var scope in resource.Scopes) 111foreach (var scope in preAuthorized.Scopes)