1 instantiation of EntraIdScope
Aspire.Hosting.Azure.EntraId (1)
EntraIdResourceExtensions.cs (1)
2425
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)
290
foreach (
var
scope in access.Declared.Select(static p => p.Scope).OfType<
EntraIdScope
>().Where(static s => !s.IsEnabled))
300
foreach (
var
scope in preAuthorized.Scopes.Where(static s => !s.IsEnabled))
959
public IReadOnlyList<
EntraIdScope
> Scopes => _scopes;
961
private readonly List<
EntraIdScope
> _scopes = [];
1004
internal void AddScope(
EntraIdScope
scope) => _scopes.Add(scope);
1020
internal 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.
2408
Action<
EntraIdScope
>? configure = null)
2425
var
scope = new EntraIdScope(name, description);
2734
foreach (
var
scope in scopes)
2877
private static
EntraIdScope
[] FindScopes(EntraIdApplicationResource api, string[] scopeNames, string parameterName)
2884
var scopes = new List<
EntraIdScope
>(scopeNames.Length);
2889
var
scope = api.Scopes.FirstOrDefault(s => string.Equals(s.Name, name, StringComparison.Ordinal))
Provisioning\EntraIdApiProvisioning.cs (2)
91
foreach (
var
scope in resource.Scopes)
114
foreach (
var
scope in preAuthorized.Scopes)