You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 27, 2025. It is now read-only.
- [x] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)
Minimal steps to reproduce
Attempted to run the provided code sample after following the pre-requisites and updating with my client ID and tenant id, it errors at $publicClient.AcquireTokenWithDeviceCode("User.Read",[DeviceCodeHelper]::GetDeviceCodeResultCallback()).ExecuteAsync().Result
Any log messages given by the failure
Cannot find an overload for "AcquireTokenWithDeviceCode" and the argument count: "2".
At .\deviceCodeSample.ps1:61 char:5
$TokenResponse = $publicClient.AcquireTokenWithDeviceCode([string ...
CategoryInfo : NotSpecified: (:) [], MethodException
FullyQualifiedErrorId : MethodCountCouldNotFindBest
Expected/desired behavior
I expect to receive a message in the console with a url and code.
OS and Version?
Windows 11
Versions
Tested in both Powershell 5.1 and 7.3
Mention any other details that might be useful
Thanks! We'll be in touch soon.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
This issue is for a: (mark with an
x
)Minimal steps to reproduce
Any log messages given by the failure
Expected/desired behavior
OS and Version?
Versions
Mention any other details that might be useful
The text was updated successfully, but these errors were encountered: