Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WARNING: Connect-oAuth - Exception calling "GetResult" with "0" argument(s) #20

Open
PrzemyslawKlys opened this issue Sep 3, 2021 · 0 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@PrzemyslawKlys
Copy link
Member

PrzemyslawKlys commented Sep 3, 2021

The error

WARNING: Connect-oAuth - Exception calling "GetResult" with "0" argument(s): "Possible cause: If you are using an XForms app, or generally a .NET Standard assembly, make sure you add a reference to Microsoft.Identity.Client.dll from each platform assembly (e.g. UWP, Android, iOS), not just from the common .NET Standard assembly. A browser is not available in the box on .NET Standard 1.3."

shows up when using PowerShell 7+ and oAuth

$CredentialOAuth2 = Connect-oAuthO365 -ClientID $ClientID -TenantID $TenantID -Login 'przemyslaw.klys@evotec.pl'

Possibly related to:

  1. [Bug] PlatformNotSupportedException in AcquireTokenInteractive call AzureAD/microsoft-authentication-library-for-dotnet#1918
  2. [Feature Request] netstandard 2.0 or 2.1 support AzureAD/microsoft-authentication-library-for-dotnet#1991
@PrzemyslawKlys PrzemyslawKlys changed the title WARNING: Connect-oAuth - Exception calling "GetResult" with "0" argument(s): "Possible cause: If you are using an XForms app, or generally a .NET Standard assembly, make sure you add a reference to Microsoft.Identity.Client.dll from each platform assembly (e.g. UWP, Android, iOS), not just from the common .NET Standard assembly. A browser is not available in the box on .NET Standard 1.3." WARNING: Connect-oAuth - Exception calling "GetResult" with "0" argument(s) Sep 3, 2021
@PrzemyslawKlys PrzemyslawKlys added bug Something isn't working help wanted Extra attention is needed labels Sep 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant