Skip to content

2.35 WAM Disablement Is Non-Functional #3518

@nkasco

Description

@nkasco

Describe the bug

The WAM disablement when using a custom ClientId appears to be non-functional. If I run Connect-MgGraph normally I get WAM (as expected), and when I pass a custom ClientId the cmdlet hangs and times out after 120 seconds. The browser window is not hidden behind anything.

Appears to be the same behavior in both PowerShell 7.5.4 as well as Windows PowerShell 5.1.

Reconfirmed that 2.33 is working properly (i.e. indicating that the client PC isn't blocking anything along the way)

This was supposed to be fixed in #3505

Expected behavior

Auth in browser window

How to reproduce

Set-MgGraphOption -DisableLoginByWAM $true
$ClientId = ""
$TenantId = ""
Connect-MgGraph -ClientId $ClientId -TenantId $TenantId

Error: Connect-MgGraph: Authentication timed out after 120 seconds due to inactivity. Please try again.
(Windows PowerShell presented a slightly different error: connect-mgGraph : InteractiveBrowserCredential authentication failed: An error occurred when writing to a listener.)

SDK Version

2.35

Latest version known to work for scenario above?

2.33

Known Workarounds

No response

Debug output

Click to expand log ```
</details>


### Configuration

_No response_

### Other information

_No response_

Metadata

Metadata

Assignees

Labels

type:bugA broken experience

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions