1 instantiation of EntraIdScope
Aspire.Hosting.Azure.EntraId (1)
EntraIdResourceExtensions.cs (1)
1668
var 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
422
private readonly
EntraIdScope
? _scope;
424
private EntraIdResolvedPermission(EntraIdPermissionType type, string name, Guid? fixedId, EntraIdApplicationResource? owner,
EntraIdScope
? scope)
440
public
EntraIdScope
? Scope => _scope;
444
public static EntraIdResolvedPermission ForScope(EntraIdApplicationResource owner,
EntraIdScope
scope) =>
EntraIdApiAccess.cs (1)
11
internal sealed record EntraIdPreAuthorizedClient(EntraIdApplicationResource Client, IReadOnlyList<
EntraIdScope
> Scopes);
EntraIdApplicationResource.cs (7)
216
foreach (
var
scope in access.Declared.Select(static p => p.Scope).OfType<
EntraIdScope
>().Where(static s => !s.IsEnabled))
226
foreach (
var
scope in preAuthorized.Scopes.Where(static s => !s.IsEnabled))
798
public IReadOnlyList<
EntraIdScope
> Scopes => _scopes;
800
private readonly List<
EntraIdScope
> _scopes = [];
843
internal void AddScope(
EntraIdScope
scope) => _scopes.Add(scope);
859
internal 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.
1651
Action<
EntraIdScope
>? configure = null)
1668
var
scope = new EntraIdScope(name, description);
1875
foreach (
var
scope in scopes)
1946
private static
EntraIdScope
[] FindScopes(EntraIdApplicationResource api, string[] scopeNames, string parameterName)
1953
var scopes = new List<
EntraIdScope
>(scopeNames.Length);
1958
var
scope = api.Scopes.FirstOrDefault(s => string.Equals(s.Name, name, StringComparison.Ordinal))
Provisioning\EntraIdApiProvisioning.cs (2)
88
foreach (
var
scope in resource.Scopes)
111
foreach (
var
scope in preAuthorized.Scopes)