1 instantiation of EntraIdScope
Aspire.Hosting.Azure.EntraId (1)
EntraIdResourceExtensions.cs (1)
2425var 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)
290foreach (var scope in access.Declared.Select(static p => p.Scope).OfType<EntraIdScope>().Where(static s => !s.IsEnabled)) 300foreach (var scope in preAuthorized.Scopes.Where(static s => !s.IsEnabled)) 959public IReadOnlyList<EntraIdScope> Scopes => _scopes; 961private readonly List<EntraIdScope> _scopes = []; 1004internal void AddScope(EntraIdScope scope) => _scopes.Add(scope); 1020internal Guid GetScopeId(EntraIdScope scope)
EntraIdResourceExtensions.cs (9)
2380/// The name is invalid or already used by another scope, or the explicit <see cref="EntraIdScope.Id"/> is already used by another scope. 2390/// To retire a scope, set <see cref="EntraIdScope.IsEnabled"/> to <see langword="false"/> and deploy, and remove the scope in a later deployment. 2394/// Set <see cref="EntraIdScope.Id"/> to the ID of the scope that the registration defines. 2408Action<EntraIdScope>? configure = null) 2425var scope = new EntraIdScope(name, description); 2734foreach (var scope in scopes) 2877private static EntraIdScope[] FindScopes(EntraIdApplicationResource api, string[] scopeNames, string parameterName) 2884var scopes = new List<EntraIdScope>(scopeNames.Length); 2889var scope = api.Scopes.FirstOrDefault(s => string.Equals(s.Name, name, StringComparison.Ordinal))
Provisioning\EntraIdApiProvisioning.cs (2)
91foreach (var scope in resource.Scopes) 114foreach (var scope in preAuthorized.Scopes)