48 references to InternalMicrosoftDetectionUtilities
Microsoft.DotNet.Cli.InternalMicrosoft (48)
Internal\GitHubMembershipClient.cs (3)
117if (!InternalMicrosoftDetectionUtilities.TryGetString(userDocument.RootElement, "login", out var login)) 132if (InternalMicrosoftDetectionUtilities.TryGetString( 174InternalMicrosoftDetectionUtilities.CreateExceptionFailure(
Internal\InternalMicrosoftDetectionContext.cs (2)
154InternalMicrosoftDetectionUtilities.CreateExceptionFailure( 181InternalMicrosoftDetectionUtilities.IsWsl(
InternalMicrosoftDetector.cs (5)
250InternalMicrosoftDetectionUtilities.NormalizeAlias(best.Result.Alias), 251InternalMicrosoftDetectionUtilities.NormalizeDomain(best.Result.Domain), 296var failure = InternalMicrosoftDetectionUtilities.CreateExceptionFailure( 370Alias = InternalMicrosoftDetectionUtilities.NormalizeAlias(entry.Alias), 371Domain = InternalMicrosoftDetectionUtilities.NormalizeDomain(entry.Domain)
Providers\CopilotCliDetectionProvider.cs (2)
34if (InternalMicrosoftDetectionUtilities.IsGitHubToken(value) && 50foreach (var token in InternalMicrosoftDetectionUtilities.ReadGitHubTokensFromJsonFile(path))
Providers\EnvironmentGitHubTokenDetectionProvider.cs (1)
34if (InternalMicrosoftDetectionUtilities.IsGitHubToken(token))
Providers\GitHubCliDetectionProvider.cs (1)
54return InternalMicrosoftDetectionUtilities.IsGitHubToken(token)
Providers\MacPlatformSsoDetectionProvider.cs (8)
99!InternalMicrosoftDetectionUtilities.TryGetString(kerberosStatus, "upn", out var upn) || 100!InternalMicrosoftDetectionUtilities.TryGetString(kerberosStatus, "realm", out var realm) || 101!InternalMicrosoftDetectionUtilities.TryGetCorporateDomain(realm, out var realmDomain)) 108InternalMicrosoftDetectionUtilities.TryGetCorporateDomain( 112InternalMicrosoftDetectionUtilities.NormalizeAlias(upn[..separator]) is { } alias) 201if (InternalMicrosoftDetectionUtilities.TryGetString(root, propertyName, out var value) && 216InternalMicrosoftDetectionUtilities.MicrosoftLoginHost, 219$"/{InternalMicrosoftDetectionUtilities.MicrosoftTenantId}{expectedSuffix}",
Providers\UserDnsDomainDetectionProvider.cs (6)
23if (!InternalMicrosoftDetectionUtilities.TryGetCorporateDomain(domain, out var corporateDomain)) 30InternalMicrosoftDetectionUtilities.NormalizeAlias(context.GetEnvironmentVariable("USERNAME")), 59var domain = InternalMicrosoftDetectionUtilities.GetEnvironmentVariableFromSetOutput( 62return InternalMicrosoftDetectionUtilities.TryGetCorporateDomain(domain, out var corporateDomain) 65InternalMicrosoftDetectionUtilities.NormalizeAlias( 66InternalMicrosoftDetectionUtilities.GetEnvironmentVariableFromSetOutput(
Providers\VisualStudioAccountDetectionProvider.cs (16)
56var localAppData = InternalMicrosoftDetectionUtilities.GetEnvironmentVariableFromSetOutput( 119InternalMicrosoftDetectionUtilities.CreateExceptionFailure( 188InternalMicrosoftDetectionUtilities.TryGetString(properties, "IdentityProvider", out var identityProvider) && 190InternalMicrosoftDetectionUtilities.MicrosoftTenantId, 216if (!InternalMicrosoftDetectionUtilities.TryGetString(properties, "IdentityProvider", out var identityProvider)) 221InternalMicrosoftDetectionUtilities.MicrosoftTenantId, 227if (!InternalMicrosoftDetectionUtilities.TryGetString(properties, "HomeTenant", out var homeTenant)) 232InternalMicrosoftDetectionUtilities.MicrosoftTenantId, 238if (!InternalMicrosoftDetectionUtilities.TryGetString(properties, "IdTokenPayload", out var payload)) 248!InternalMicrosoftDetectionUtilities.TryGetString(tokenRoot, "tid", out var tenantId) || 250InternalMicrosoftDetectionUtilities.MicrosoftTenantId, 252!InternalMicrosoftDetectionUtilities.TryGetString(tokenRoot, "iss", out var issuer) || 254$"https://{InternalMicrosoftDetectionUtilities.MicrosoftLoginHost}/{InternalMicrosoftDetectionUtilities.MicrosoftTenantId}/v2.0", 256!InternalMicrosoftDetectionUtilities.TryGetString(tokenRoot, "preferred_username", out var username) || 257!InternalMicrosoftDetectionUtilities.TryGetMicrosoftAccountIdentity(
Providers\WorkplaceJoinDetectionProvider.cs (4)
149InternalMicrosoftDetectionUtilities.MicrosoftTenantId, 165if (InternalMicrosoftDetectionUtilities.TryGetCorporateDomain(domainValue, out var corporateDomain)) 170return InternalMicrosoftDetectionUtilities.TryGetCorporateDomain( 187return InternalMicrosoftDetectionUtilities.TryGetMicrosoftAccountIdentity(