Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Error connecting to Microsoft Graph only when using PowerShell 7.7.0-preview.5

未关闭
#3,822 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 2 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
22/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
csharp, powershell

调研方向

The failure happens in the interactive sign-in path that Connect-MgGraph uses, which goes through Azure.Identity.Broker and WAM. The error text 'Failed to parse the returned client info' comes from that flow, so start by reproducing with Connect-MgGraph -Debug on 7.7.0-preview.5 and on 7.6.6 and comparing the broker logs. Done means a working reproduction and a clear cause, either a fix in this SDK or a confirmed upstream dependency problem with a reference to it. The issue has no comments yet, and the root cause may sit in MSAL or PowerShell rather than in this repository.

由索引模型根据 Issue 内容生成。

描述

status:waiting-for-triage type:bug
Describe the bug

Hello,

I have posted this issue as well on the PowerShell Github, and was recommended to link that for the Microsoft.Graph Github here as well - https://github.com/PowerShell/PowerShell/issues/27711#issue-4949210629

This issue happens in PowerShell.Preview.3 and .Preview.5. It does not happen in PowerShell 7.6.6.

Expected behavior

PS C:> Connect-MgGraph
WARNING: Note: Sign in by Web Account Manager (WAM) is enabled by default on Windows. If using an embedded terminal, the interactive browser window may be hidden behind other windows.
Welcome to Microsoft Graph!

Connected via delegated access using 14d82eec-204b-4c2f-b7e8-296a70dab67e
Readme: https://aka.ms/graph/sdk/powershell
SDK Docs: https://aka.ms/graph/sdk/powershell/docs
API Docs: https://aka.ms/graph/docs

NOTE: You can use the -NoWelcome parameter to suppress this message.
NOTE: Sign in by Web Account Manager (WAM) is enabled by default on Windows systems and cannot be disabled when using the default ClientId.
To disable WAM run Set-MgGraphOption -DisableLoginByWAM $true and then use a custom ClientId.

How to reproduce
  1. Open PowerShell Preview 5 in Windows Terminal or Terminal Beta
  2. Type in the Microsoft.Graph connect command

PS C:> Connect-MgGraph
WARNING: Note: Sign in by Web Account Manager (WAM) is enabled by default on Windows. If using an embedded terminal, the interactive browser window may be hidden behind other windows.
Connect-MgGraph: InteractiveBrowserCredential authentication failed: Failed to parse the returned client info.

SDK Version

2.41.1

Latest version known to work for scenario above?

2.39.0 and below for MS Graph, PowerShell Preview.2 and below for PowerShell

Known Workarounds

Use PowerShell 7.6.6 to connect to Microsoft.Graph and run commands as needed.

Debug output
Click to expand log ```

PowerShell 7.7.0-preview.5
PS C:> Connect-MgGraph -Scopes "Application.Read.All" -Debug
WARNING: Note: Sign in by Web Account Manager (WAM) is enabled by default on Windows. If using an embedded terminal, the interactive browser window may be hidden behind other windows.

Confirm
Continue with this operation?
[Y] Yes [A] Yes to All [H] Halt Command [S] Suspend [?] Help (default is "Y"): a
DEBUG: InteractiveBrowserCredential.Authenticate invoked. Scopes: [ Application.Read.All ] ParentRequestId:
DEBUG: Executing interactive authentication workflow inline.
DEBUG: False MSAL 4.90.0.0 MSAL.CoreCLR .NET 11.0.0-rc.1.26425.128 Microsoft Windows 10.0.26300 [2026-10-09 12:53:26Z - ee3ffd7a-2469-4589-90f8-e070cefc669e] MSAL MSAL.CoreCLR with assembly version '4.90.0.0'. CorrelationId(ee3ffd7a-2469-4589-90f8-e070cefc669e)
DEBUG: False MSAL 4.90.0.0 MSAL.CoreCLR .NET 11.0.0-rc.1.26425.128 Microsoft Windows 10.0.26300 [2026-10-09 12:53:26Z - ee3ffd7a-2469-4589-90f8-e070cefc669e] === InteractiveParameters Data ===
LoginHint provided: False
User provided: False
UseEmbeddedWebView: NotSpecified
ExtraScopesToConsent:
Prompt: select_account
HasCustomWebUi: False
DEBUG: False MSAL 4.90.0.0 MSAL.CoreCLR .NET 11.0.0-rc.1.26425.128 Microsoft Windows 10.0.26300 [2026-10-09 12:53:26Z - ee3ffd7a-2469-4589-90f8-e070cefc669e]
=== Request Data ===
Authority Provided? - True
Scopes - Application.Read.All
Extra Query Params Keys (space separated) -
ApiId - AcquireTokenInteractive
IsConfidentialClient - False
SendX5C - False
LoginHint ? False
IsBrokerConfigured - True
HomeAccountId - False
CorrelationId - ee3ffd7a-2469-4589-90f8-e070cefc669e
UserAssertion set: False
LongRunningOboCacheKey set: False
Region configured:
FMI Path:
Credential FMI Path:

DEBUG: False MSAL 4.90.0.0 MSAL.CoreCLR .NET 11.0.0-rc.1.26425.128 Microsoft Windows 10.0.26300 [2026-10-09 12:53:26Z - ee3ffd7a-2469-4589-90f8-e070cefc669e] === Token Acquisition (InteractiveRequest) started:
Scopes: Application.Read.All
Authority Host: login.microsoftonline.com
DEBUG: False MSAL 4.90.0.0 MSAL.CoreCLR .NET 11.0.0-rc.1.26425.128 Microsoft Windows 10.0.26300 [2026-10-09 12:53:26Z - ee3ffd7a-2469-4589-90f8-e070cefc669e] [Instance Discovery] Instance discovery is enabled and will be performed
DEBUG: False MSAL 4.90.0.0 MSAL.CoreCLR .NET 11.0.0-rc.1.26425.128 Microsoft Windows 10.0.26300 [2026-10-09 12:53:26Z - ee3ffd7a-2469-4589-90f8-e070cefc669e] [Region discovery] Not using a regional authority.
DEBUG: False MSAL 4.90.0.0 MSAL.CoreCLR .NET 11.0.0-rc.1.26425.128 Microsoft Windows 10.0.26300 [2026-10-09 12:53:26Z - ee3ffd7a-2469-4589-90f8-e070cefc669e] Fetching instance discovery from the network from host login.microsoftonline.com.
DEBUG: Request [924aa2e4-8875-4449-aa70-5513da6c7869] GET https://login.microsoftonline.com/common/discovery/instance?api-version=1.1&authorization_endpoint=REDACTED
x-client-SKU:REDACTED
x-client-Ver:REDACTED
x-client-OS:REDACTED
client-request-id:REDACTED
return-client-request-id:REDACTED
x-ms-client-request-id:924aa2e4-8875-4449-aa70-5513da6c7869
x-ms-return-client-request-id:true
User-Agent:azsdk-net-Identity.Broker/1.4.0 (.NET 11.0.0-rc.1.26425.128; Microsoft Windows 10.0.26300)
client assembly: Azure.Identity.Broker
DEBUG: Response [924aa2e4-8875-4449-aa70-5513da6c7869] 200 OK (00.2s)
Cache-Control:max-age=86400, private
Strict-Transport-Security:REDACTED
X-Content-Type-Options:REDACTED
Access-Control-Allow-Origin:REDACTED
Access-Control-Allow-Methods:REDACTED
P3P:REDACTED
client-request-id:REDACTED
x-ms-request-id:0106719b-7215-4d7a-ba2f-c58b831bf500
x-ms-ests-server:REDACTED
x-ms-srs:REDACTED
Content-Security-Policy-Report-Only:REDACTED
X-XSS-Protection:REDACTED
Set-Cookie:REDACTED
Date:Fri, 09 Oct 2026 12:53:25 GMT
Content-Type:application/json; charset=utf-8
Content-Length:950

DEBUG: False MSAL 4.90.0.0 MSAL.CoreCLR .NET 11.0.0-rc.1.26425.128 Microsoft Windows 10.0.26300 [2026-10-09 12:53:26Z - ee3ffd7a-2469-4589-90f8-e070cefc669e] Broker is configured. Starting broker flow without knowing the broker installation app link.
DEBUG: False MSAL 4.90.0.0 MSAL.CoreCLR .NET 11.0.0-rc.1.26425.128 Microsoft Windows 10.0.26300 [2026-10-09 12:53:26Z] [Runtime] Broker supported OS.
DEBUG: False MSAL 4.90.0.0 MSAL.CoreCLR .NET 11.0.0-rc.1.26425.128 Microsoft Windows 10.0.26300 [2026-10-09 12:53:26Z - ee3ffd7a-2469-4589-90f8-e070cefc669e] Can invoke broker. Will attempt to acquire token with broker.
DEBUG: False MSAL 4.90.0.0 MSAL.CoreCLR .NET 11.0.0-rc.1.26425.128 Microsoft Windows 10.0.26300 [2026-10-09 12:53:26Z] [RuntimeBroker] Calling SignInInteractivelyAsync this will show the account picker.
DEBUG: False MSAL 4.90.0.0 MSAL.CoreCLR .NET 11.0.0-rc.1.26425.128 Microsoft Windows 10.0.26300 [2026-10-09 12:53:26Z] [MSAL:0001] INFO SetAuthorityUri:80 Initializing authority from URI 'https://login.microsoftonline.com/common/' without authority type, detected type 'ms_sts'
DEBUG: False MSAL 4.90.0.0 MSAL.CoreCLR .NET 11.0.0-rc.1.26425.128 Microsoft Windows 10.0.26300 [2026-10-09 12:53:26Z] [MSAL:0002] INFO SetCorrelationId:241 Set correlation ID: ee3ffd7a-2469-4589-90f8-e070cefc669e
DEBUG: False MSAL 4.90.0.0 MSAL.CoreCLR .NET 11.0.0-rc.1.26425.128 Microsoft Windows 10.0.26300 [2026-10-09 12:53:26Z] [MSAL:0002] INFO ExecuteInteractiveRequest:1404 The original authority is 'https://login.microsoftonline.com/common'
DEBUG: False MSAL 4.90.0.0 MSAL.CoreCLR .NET 11.0.0-rc.1.26425.128 Microsoft Windows 10.0.26300 [2026-10-09 12:53:26Z] [MSAL:0002] WARNING TryNormalizeRealm:2660 No HomeAccountId provided to normalize the realm
DEBUG: False MSAL 4.90.0.0 MSAL.CoreCLR .NET 11.0.0-rc.1.26425.128 Microsoft Windows 10.0.26300 [2026-10-09 12:53:26Z] [MSAL:0002] INFO ExecuteInteractiveRequest:1415 The normalized realm is ''
DEBUG: False MSAL 4.90.0.0 MSAL.CoreCLR .NET 11.0.0-rc.1.26425.128 Microsoft Windows 10.0.26300 [2026-10-09 12:53:26Z] [MSAL:0002] INFO ModifyAndValidateAuthParameters:228 Additional query parameter added successfully. Key: '(pii)' Value: '(pii)'
DEBUG: False MSAL 4.90.0.0 MSAL.CoreCLR .NET 11.0.0-rc.1.26425.128 Microsoft Windows 10.0.26300 [2026-10-09 12:53:26Z] [MSAL:0002] INFO ModifyAndValidateAuthParameters:228 Additional query parameter added successfully. Key: '(pii)' Value: '(pii)'
DEBUG: False MSAL 4.90.0.0 MSAL.CoreCLR .NET 11.0.0-rc.1.26425.128 Microsoft Windows 10.0.26300 [2026-10-09 12:53:26Z] [MSAL:0002] INFO ModifyAndValidateAuthParameters:251 Authority Realm: common
DEBUG: False MSAL 4.90.0.0 MSAL.CoreCLR .NET 11.0.0-rc.1.26425.128 Microsoft Windows 10.0.26300 [2026-10-09 12:53:26Z] [MSAL:0002] WARNING TryEnqueueMsaDeviceCredentialAcquisitionAndContinue:1297 MsaDeviceOperationProvider is not available. Not attempting to register the device.
DEBUG: False MSAL 4.90.0.0 MSAL.CoreCLR .NET 11.0.0-rc.1.26425.128 Microsoft Windows 10.0.26300 [2026-10-09 12:53:26Z] [MSAL:0003] WARNING ReturnResponseDueToMissingParameter:801 Attempted to read cache with a non-normalized realm, access token and ID token reads will fail
DEBUG: False MSAL 4.90.0.0 MSAL.CoreCLR .NET 11.0.0-rc.1.26425.128 Microsoft Windows 10.0.26300 [2026-10-09 12:53:26Z] [MSAL:0003] WARNING ReturnResponseDueToMissingParameter:829 Missing Required parameters, but found no account to return.
DEBUG: False MSAL 4.90.0.0 MSAL.CoreCLR .NET 11.0.0-rc.1.26425.128 Microsoft Windows 10.0.26300 [2026-10-09 12:53:26Z] [MSAL:0003] WARNING ReadAccountById:704 Account id is empty - account not found
DEBUG: False MSAL 4.90.0.0 MSAL.CoreCLR .NET 11.0.0-rc.1.26425.128 Microsoft Windows 10.0.26300 [2026-10-09 12:53:26Z] [MSAL:0003] INFO GetCurrentWindowHandleForUIFlow:501 Specified brokerWindowHandle is valid.
DEBUG: False MSAL 4.90.0.0 MSAL.CoreCLR .NET 11.0.0-rc.1.26425.128 Microsoft Windows 10.0.26300 [2026-10-09 12:53:28Z] [MSAL:0004] INFO CreateRequestForProviderWithProperties:859 Client-xtra-sku: MSAL.CoreCLR|4.90.0.0,|0.20.6,|,|,|10.1.1
DEBUG: False MSAL 4.90.0.0 MSAL.CoreCLR .NET 11.0.0-rc.1.26425.128 Microsoft Windows 10.0.26300 [2026-10-09 12:53:28Z] [MSAL:0004] INFO AddClientSystemInfoToRequest:1250 Client-xtra-sku: MSAL.CoreCLR|4.90.0.0,|0.20.6,|,|,|10.1.1
DEBUG: False MSAL 4.90.0.0 MSAL.CoreCLR .NET 11.0.0-rc.1.26425.128 Microsoft Windows 10.0.26300 [2026-10-09 12:53:28Z] [MSAL:0003] INFO SetCanonicalRealm:1181 Normalize realm to: '<TENANT_ID>'
DEBUG: False MSAL 4.90.0.0 MSAL.CoreCLR .NET 11.0.0-rc.1.26425.128 Microsoft Windows 10.0.26300 [2026-10-09 12:53:28Z] [MSAL:0003] INFO LogTelemetryData:488 Printing Telemetry for Correlation ID: ee3ffd7a-2469-4589-90f8-e070cefc669e
DEBUG: False MSAL 4.90.0.0 MSAL.CoreCLR .NET 11.0.0-rc.1.26425.128 Microsoft Windows 10.0.26300 [2026-10-09 12:53:28Z] [MSAL:0003] INFO LogTelemetryData:496 Key: start_time, Value: 2026-10-09T12:53:26.000Z
DEBUG: False MSAL 4.90.0.0 MSAL.CoreCLR .NET 11.0.0-rc.1.26425.128 Microsoft Windows 10.0.26300 [2026-10-09 12:53:28Z] [MSAL:0003] INFO LogTelemetryData:496 Key: api_name, Value: SignInInteractively
DEBUG: False MSAL 4.90.0.0 MSAL.CoreCLR .NET 11.0.0-rc.1.26425.128 Microsoft Windows 10.0.26300 [2026-10-09 12:53:28Z] [MSAL:0003] INFO LogTelemetryData:496 Key: was_request_throttled, Value: false
DEBUG: False MSAL 4.90.0.0 MSAL.CoreCLR .NET 11.0.0-rc.1.26425.128 Microsoft Windows 10.0.26300 [2026-10-09 12:53:28Z] [MSAL:0003] INFO LogTelemetryData:496 Key: authority_type, Value: AAD
DEBUG: False MSAL 4.90.0.0 MSAL.CoreCLR .NET 11.0.0-rc.1.26425.128 Microsoft Windows 10.0.26300 [2026-10-09 12:53:28Z] [MSAL:0003] INFO LogTelemetryData:496 Key: access_token_expiry_time, Value: 2026-10-09T14:12:11.000Z
DEBUG: False MSAL 4.90.0.0 MSAL.CoreCLR .NET 11.0.0-rc.1.26425.128 Microsoft Windows 10.0.26300 [2026-10-09 12:53:28Z] [MSAL:0003] INFO LogTelemetryData:496 Key: time_in_queue_ms, Value: 1522
DEBUG: False MSAL 4.90.0.0 MSAL.CoreCLR .NET 11.0.0-rc.1.26425.128 Microsoft Windows 10.0.26300 [2026-10-09 12:53:28Z] [MSAL:0003] INFO LogTelemetryData:496 Key: msal_version, Value: 10.1.1
DEBUG: False MSAL 4.90.0.0 MSAL.CoreCLR .NET 11.0.0-rc.1.26425.128 Microsoft Windows 10.0.26300 [2026-10-09 12:53:28Z] [MSAL:0003] INFO LogTelemetryData:496 Key: client_id, Value: 14d82eec-204b-4c2f-b7e8-296a70dab67e
DEBUG: False MSAL 4.90.0.0 MSAL.CoreCLR .NET 11.0.0-rc.1.26425.128 Microsoft Windows 10.0.26300 [2026-10-09 12:53:28Z] [MSAL:0003] INFO LogTelemetryData:496 Key: correlation_id, Value: ee3ffd7a-2469-4589-90f8-e070cefc669e
DEBUG: False MSAL 4.90.0.0 MSAL.CoreCLR .NET 11.0.0-rc.1.26425.128 Microsoft Windows 10.0.26300 [2026-10-09 12:53:28Z] [MSAL:0003] INFO LogTelemetryData:496 Key: broker_app_used, Value: true
DEBUG: False MSAL 4.90.0.0 MSAL.CoreCLR .NET 11.0.0-rc.1.26425.128 Microsoft Windows 10.0.26300 [2026-10-09 12:53:28Z] [MSAL:0003] INFO LogTelemetryData:496 Key: stop_time, Value: 2026-10-09T12:53:28.000Z
DEBUG: False MSAL 4.90.0.0 MSAL.CoreCLR .NET 11.0.0-rc.1.26425.128 Microsoft Windows 10.0.26300 [2026-10-09 12:53:28Z] [MSAL:0003] INFO LogTelemetryData:496 Key: msalruntime_version, Value: 0.20.6
DEBUG: False MSAL 4.90.0.0 MSAL.CoreCLR .NET 11.0.0-rc.1.26425.128 Microsoft Windows 10.0.26300 [2026-10-09 12:53:28Z] [MSAL:0003] INFO LogTelemetryData:496 Key: original_authority, Value: https://login.microsoftonline.com/common
DEBUG: False MSAL 4.90.0.0 MSAL.CoreCLR .NET 11.0.0-rc.1.26425.128 Microsoft Windows 10.0.26300 [2026-10-09 12:53:28Z] [MSAL:0003] INFO LogTelemetryData:496 Key: additional_query_parameters_count, Value: 2
DEBUG: False MSAL 4.90.0.0 MSAL.CoreCLR .NET 11.0.0-rc.1.26425.128 Microsoft Windows 10.0.26300 [2026-10-09 12:53:28Z] [MSAL:0003] INFO LogTelemetryData:496 Key: read_token_last_error, Value: missing required parameter
DEBUG: False MSAL 4.90.0.0 MSAL.CoreCLR .NET 11.0.0-rc.1.26425.128 Microsoft Windows 10.0.26300 [2026-10-09 12:53:28Z] [MSAL:0003] INFO LogTelemetryData:496 Key: request_eligible_for_broker, Value: true
DEBUG: False MSAL 4.90.0.0 MSAL.CoreCLR .NET 11.0.0-rc.1.26425.128 Microsoft Windows 10.0.26300 [2026-10-09 12:53:28Z] [MSAL:0003] INFO LogTelemetryData:496 Key: auth_flow, Value: Broker
DEBUG: False MSAL 4.90.0.0 MSAL.CoreCLR .NET 11.0.0-rc.1.26425.128 Microsoft Windows 10.0.26300 [2026-10-09 12:53:28Z] [MSAL:0003] INFO LogTelemetryData:496 Key: ui_event_count, Value: 1
DEBUG: False MSAL 4.90.0.0 MSAL.CoreCLR .NET 11.0.0-rc.1.26425.128 Microsoft Windows 10.0.26300 [2026-10-09 12:53:28Z] [MSAL:0003] INFO LogTelemetryData:496 Key: wam_telemetry, Value: {"tenant_id":"<TENANT_ID>","cache_event_count":0,"http_status":200,"http_event_count":1,"correlation_id":"{ac5d4c3d-c047-4afe-810a-e0cc94766e8a}","authority":"https://login.microsoftonline.com/common","client_id":"14d82eec-204b-4c2f-b7e8-296a70dab67e","redirect_uri":"ms-appx-web://Microsoft.AAD.BrokerPlugin/14d82eec-204b-4c2f-b7e8-296a70dab67e","scope":"openid Application.Read.All offline_access profile","api_error_code":0,"x_ms_clitelem":"1,0,0,2776717.5676,","ui_visible":false,"account_id":"<USER_OBJECT_ID>","http_content_type":"application/jose; charset=utf-8","http_content_size":21048,"ccs_failover_v2":"1.P","device_join":"aadj","account_join_on_start":"primary","account_join_on_end":"primary","provider_id":"https://login.windows.net","broker_version":"10.0.26100.9549","broker_schema_version":"1.0.0","broker_name":"entra_id_wam","perf":{"start_time":"1791550384367","du":805,"execution_flow":[{"t":"apo_s","ts":0},{"t":"apo.rto_s","ts":73},{"t":"apo.rto.prt_s","ts":73},{"t":"apo.rto.prt.m_s","ts":73},{"t":"apo.rto.prt.m_e","ts":89,"du":16},{"t":"apo.rto.prt.sk_s","ts":73},{"t":"apo.rto.prt.sk_e","ts":89,"du":16},{"t":"apo.rto.prt.tn_s","ts":89},{"t":"apo.rto.prt.tn_e","ts":697,"du":608},{"t":"apo.rto.prt.s_s","ts":89},{"t":"apo.rto.prt.s_e","ts":668,"du":579},{"t":"apo.rto.prt.r_s","ts":668},{"t":"apo.rto.prt.r_e","ts":697,"du":29},{"t":"apo.rto.prt_e","ts":697,"du":624},{"t":"apo.rto_e","ts":697,"du":624},{"t":"apo_e","ts":805,"du":805}]},"is_guest_user_logon_session":false,"is_guest_user_logon_token_request":false,"is_guest_resource_scenario":false,"silent_code":0,"silent_bi_sub_code":0,"silent_message":"","silent_mats":{"tenant_id":"<TENANT_ID>","cache_event_count":0,"http_status":200,"http_event_count":1,"correlation_id":"{ac5d4c3d-c047-4afe-810a-e0cc94766e8a}","authority":"https://login.microsoftonline.com/common","client_id":"14d82eec-204b-4c2f-b7e8-296a70dab67e","redirect_uri":"ms-appx-web://Microsoft.AAD.BrokerPlugin/14d82eec-204b-4c2f-b7e8-296a70dab67e","scope":"openid Application.Read.All offline_access profile","api_error_code":0,"x_ms_clitelem":"1,0,0,2776717.5676,","ui_visible":false,"account_id":"<USER_OBJECT_ID>","http_content_type":"application/jose; charset=utf-8","http_content_size":21048,"ccs_failover_v2":"1.P","device_join":"aadj","account_join_on_start":"primary","account_join_on_end":"primary","provider_id":"https://login.windows.net","broker_version":"10.0.26100.9549","broker_schema_version":"1.0.0","broker_name":"entra_id_wam","perf":{"start_time":"1791550384367","du":805,"execution_flow":[{"t":"apo_s","ts":0},{"t":"apo.rto_s","ts":73},{"t":"apo.rto.prt_s","ts":73},{"t":"apo.rto.prt.m_s","ts":73},{"t":"apo.rto.prt.m_e","ts":89,"du":16},{"t":"apo.rto.prt.sk_s","ts":73},{"t":"apo.rto.prt.sk_e","ts":89,"du":16},{"t":"apo.rto.prt.tn_s","ts":89},{"t":"apo.rto.prt.tn_e","ts":697,"du":608},{"t":"apo.rto.prt.s_s","ts":89},{"t":"apo.rto.prt.s_e","ts":668,"du":579},{"t":"apo.rto.prt.r_s","ts":668},{"t":"apo.rto.prt.r_e","ts":697,"du":29},{"t":"apo.rto.prt_e","ts":697,"du":624},{"t":"apo.rto_e","ts":697,"du":624},{"t":"apo_e","ts":805,"du":805}]},"is_guest_user_logon_session":false,"is_guest_user_logon_token_request":false,"is_guest_resource_scenario":false},"silent_status":0,"is_cached":1}
DEBUG: False MSAL 4.90.0.0 MSAL.CoreCLR .NET 11.0.0-rc.1.26425.128 Microsoft Windows 10.0.26300 [2026-10-09 12:53:28Z] [MSAL:0003] INFO LogTelemetryData:496 Key: tenant_id, Value: <TENANT_ID>
DEBUG: False MSAL 4.90.0.0 MSAL.CoreCLR .NET 11.0.0-rc.1.26425.128 Microsoft Windows 10.0.26300 [2026-10-09 12:53:28Z] [MSAL:0003] INFO LogTelemetryData:496 Key: normalized_realm, Value: <TENANT_ID>
DEBUG: False MSAL 4.90.0.0 MSAL.CoreCLR .NET 11.0.0-rc.1.26425.128 Microsoft Windows 10.0.26300 [2026-10-09 12:53:28Z] [MSAL:0003] INFO LogTelemetryData:496 Key: write_token, Value: AT|ID
DEBUG: False MSAL 4.90.0.0 MSAL.CoreCLR .NET 11.0.0-rc.1.26425.128 Microsoft Windows 10.0.26300 [2026-10-09 12:53:28Z] [MSAL:0003] INFO LogTelemetryData:496 Key: storage_write, Value: DAT|DID|DAC
DEBUG: False MSAL 4.90.0.0 MSAL.CoreCLR .NET 11.0.0-rc.1.26425.128 Microsoft Windows 10.0.26300 [2026-10-09 12:53:28Z] [MSAL:0003] INFO LogTelemetryData:496 Key: storage_read, Value: DAC|DAC
DEBUG: False MSAL 4.90.0.0 MSAL.CoreCLR .NET 11.0.0-rc.1.26425.128 Microsoft Windows 10.0.26300 [2026-10-09 12:53:28Z] [MSAL:0003] INFO LogTelemetryData:496 Key: is_successful, Value: true
DEBUG: False MSAL 4.90.0.0 MSAL.CoreCLR .NET 11.0.0-rc.1.26425.128 Microsoft Windows 10.0.26300 [2026-10-09 12:53:28Z] [MSAL:0003] INFO LogTelemetryData:496 Key: authorization_type, Value: Interactive
DEBUG: False MSAL 4.90.0.0 MSAL.CoreCLR .NET 11.0.0-rc.1.26425.128 Microsoft Windows 10.0.26300 [2026-10-09 12:53:28Z] [MSAL:0003] INFO LogTelemetryData:496 Key: request_duration, Value: 1559
DEBUG: False MSAL 4.90.0.0 MSAL.CoreCLR .NET 11.0.0-rc.1.26425.128 Microsoft Windows 10.0.26300 [2026-10-09 12:53:28Z] [MSAL:0003] INFO LogTelemetryData:501 Printing Execution Flow:
DEBUG: False MSAL 4.90.0.0 MSAL.CoreCLR .NET 11.0.0-rc.1.26425.128 Microsoft Windows 10.0.26300 [2026-10-09 12:53:28Z] [MSAL:0003] INFO LogTelemetryData:509 {"t":"646u1","tid":2,"ts":0,"l":2},{"t":"4s7ub","tid":2,"ts":0,"l":2},{"t":"4sufd","tid":2,"ts":0,"s":2,"l":2},{"t":"4swgg","tid":2,"ts":0,"s":1,"l":2},{"t":"4swgf","tid":2,"ts":0,"s":1,"l":2},{"t":"4swgi","tid":3,"ts":1,"s":1,"l":2},{"t":"8dqim","tid":3,"ts":1,"l":2},{"t":"8dqkl","tid":3,"ts":1,"l":2,"a":9,"ie":0},{"t":"4ly8o","tid":3,"ts":1,"l":2},{"t":"54uxe","tid":2,"ts":1,"l":2},{"t":"4wqm9","tid":4,"ts":1467,"l":2},{"t":"4o9ak","tid":4,"ts":1468,"l":2},{"t":"4o9ai","tid":4,"ts":1483,"l":2},{"t":"8dql1","tid":4,"ts":1518,"l":2},{"t":"4qopb","tid":4,"ts":1518,"l":2},{"t":"8dqkn","tid":4,"ts":1518,"l":2,"a":5,"ie":1},{"t":"8dqko","tid":4,"ts":1518,"l":2,"a":9,"ie":1},{"t":"8dqkr","tid":4,"ts":1518,"l":2},{"t":"4sufd","tid":4,"ts":1518,"s":2,"l":2},{"t":"4swgg","tid":4,"ts":1518,"s":2,"l":2},{"t":"4swgf","tid":4,"ts":1518,"s":1,"l":2},{"t":"4swgi","tid":3,"ts":1518,"s":2,"l":2},{"t":"8b2yn","tid":3,"ts":1518,"l":2},{"t":"372tj","tid":3,"ts":1518,"l":2},{"t":"8dqlh","tid":3,"ts":1518,"l":2},{"t":"8dqli","tid":3,"ts":1518,"l":2},{"t":"8dqln","tid":3,"ts":1518,"l":2},{"t":"4qnnm","tid":3,"ts":1519,"l":2,"a":3,"ie":0},{"t":"4myjh","tid":3,"ts":1523,"l":2},{"t":"4myjg","tid":3,"ts":1528,"l":2},{"t":"4myjf","tid":3,"ts":1530,"l":2},{"t":"4myjh","tid":3,"ts":1531,"l":2},{"t":"4myjg","tid":3,"ts":1534,"l":2},{"t":"4myjf","tid":3,"ts":1536,"l":2},{"t":"4qnnl","tid":3,"ts":1536,"l":2,"a":3,"ie":1},{"t":"4qnng","tid":3,"ts":1536,"l":2,"a":2,"ie":0},{"t":"4qnnf","tid":3,"ts":1538,"l":2,"a":2,"ie":1},{"t":"8dqit","tid":3,"ts":1538,"l":2},{"t":"4zbmu","tid":3,"ts":1538,"l":2},{"t":"4qnng","tid":3,"ts":1538,"l":2,"a":2,"ie":0},{"t":"4qnnf","tid":3,"ts":1540,"l":2,"a":2,"ie":1},{"t":"4qnne","tid":3,"ts":1541,"l":2,"a":3,"ie":0},{"t":"4myjh","tid":3,"ts":1542,"l":2},{"t":"4myjg","tid":3,"ts":1544,"l":2},{"t":"4myjf","tid":3,"ts":1547,"l":2},{"t":"4qnnd","tid":3,"ts":1547,"l":2,"a":3,"ie":1},{"t":"6xuag","tid":3,"ts":1547,"l":2},{"t":"4waym","tid":3,"ts":1547,"l":2},{"t":"4c10b","tid":3,"ts":1556,"l":2},{"t":"4c10a","tid":3,"ts":1556,"l":2}
DEBUG: False MSAL 4.90.0.0 MSAL.CoreCLR .NET 11.0.0-rc.1.26425.128 Microsoft Windows 10.0.26300 [2026-10-09 12:53:28Z] [RuntimeBroker] WAM response status success
DEBUG: False MSAL 4.90.0.0 MSAL.CoreCLR .NET 11.0.0-rc.1.26425.128 Microsoft Windows 10.0.26300 [2026-10-09 12:53:28Z - ee3ffd7a-2469-4589-90f8-e070cefc669e] Checking MsalTokenResponse returned from broker.
DEBUG: False MSAL 4.90.0.0 MSAL.CoreCLR .NET 11.0.0-rc.1.26425.128 Microsoft Windows 10.0.26300 [2026-10-09 12:53:28Z - ee3ffd7a-2469-4589-90f8-e070cefc669e] Success. Broker response contains an access token.
DEBUG: False MSAL 4.90.0.0 MSAL.CoreCLR .NET 11.0.0-rc.1.26425.128 Microsoft Windows 10.0.26300 [2026-10-09 12:53:28Z - ee3ffd7a-2469-4589-90f8-e070cefc669e] Broker attempt completed successfully.
DEBUG: False MSAL 4.90.0.0 MSAL.CoreCLR .NET 11.0.0-rc.1.26425.128 Microsoft Windows 10.0.26300 [2026-10-09 12:53:28Z - ee3ffd7a-2469-4589-90f8-e070cefc669e] Checking client info returned from the server..
DEBUG: False MSAL 4.90.0.0 MSAL.CoreCLR .NET 11.0.0-rc.1.26425.128 Microsoft Windows 10.0.26300 [2026-10-09 12:53:28Z - ee3ffd7a-2469-4589-90f8-e070cefc669e] Exception type: Microsoft.Identity.Client.MsalClientException
, ErrorCode: json_parse_failed
---> Inner Exception Details
Exception type: System.FormatException
To see full exception details, enable PII Logging. See https://aka.ms/msal-net-logging
at System.Buffers.Text.Base64.DecodeFromChars(ReadOnlySpan`1 source)
at System.Convert.FromBase64String(String s)
at Microsoft.Identity.Client.Utils.Base64UrlHelpers.UnsafeDecode(String str)
at Microsoft.Identity.Client.Utils.Base64UrlHelpers.DecodeBytes(String str)
at Microsoft.Identity.Client.Internal.ClientInfo.CreateFromJson(String clientInfo)

=== End of inner exception stack trace ===
To see full exception details, enable PII Logging. See https://aka.ms/msal-net-logging
at Microsoft.Identity.Client.Internal.ClientInfo.CreateFromJson(String clientInfo)
at Microsoft.Identity.Client.Internal.Requests.RequestBase.CacheTokenResponseAndCreateAuthenticationResultAsync(MsalTokenResponse msalTokenResponse, CancellationToken cancellationToken)
at Microsoft.Identity.Client.Internal.Requests.InteractiveRequest.ExecuteAsync(CancellationToken cancellationToken)
at Microsoft.Identity.Client.Internal.Requests.RequestBase.<>c__DisplayClass13_1.<b__1>d.MoveNext()
--- End of stack trace from previous location ---
at Microsoft.Identity.Client.Utils.StopwatchService.MeasureCodeBlockAsync(Func`1 codeBlock)
at Microsoft.Identity.Client.Internal.Requests.RequestBase.RunAsync(CancellationToken cancellationToken)

DEBUG: InteractiveBrowserCredential.Authenticate was unable to retrieve an access token. Scopes: [ Application.Read.All ] ParentRequestId: Exception: Azure.Identity.AuthenticationFailedException (0x80131500): InteractiveBrowserCredential authentication failed: Failed to parse the returned client info.
---> Microsoft.Identity.Client.MsalClientException (0x80131500): Failed to parse the returned client info.
---> System.FormatException (0x80131537): The input is not a valid Base-64 string as it contains a non-base 64 character, more than two padding characters, or an illegal character among the padding characters.
Connect-MgGraph: InteractiveBrowserCredential authentication failed: Failed to parse the returned client info.

</details>


### Configuration

- OS:  Windows 11 26H2
- Architecture:  x64

PS C:\> $PSVersionTable

Name                           Value
----                           -----
PSVersion                      7.7.0-preview.5
PSEdition                      Core
GitCommitId                    7.7.0-preview.5
OS                             Microsoft Windows 10.0.26300
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.4
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

### Other information

_No response_
主要语言
C#
星标
902
派生
233
平均合并
1 天 22 小时
30 天内合并 PR
29

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

microsoftgraph/msgraph-sdk-powershell 的其他 Issue

查看 microsoftgraph/msgraph-sdk-powershell 的全部 Issue

相似的 Issue

更多 C# Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。