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

Connect-MSGraph does not accept credential object in PowerShell Core #42

Open
corbob opened this issue May 9, 2019 · 1 comment
Open

Comments

@corbob
Copy link

corbob commented May 9, 2019

Is there a technical reason for only accepting a PSCredential object within Windows PowerShell? As pwsh is able to use PSCredential objects, it would stand to reason this should be used there too...

@rohitramu
Copy link
Contributor

rohitramu commented Jul 15, 2019

@corbob Thanks for raising this issue. You are correct that PSCredential objects can be used with PowerShell Core. However, the .NET Core version of ADAL (the authentication library used in the module) does not support passing in a username and password. This is why the PSCredential method of logging in wasn't exposed in the PowerShell Core version of the module.

See ADAL issue 482: AzureAD/azure-activedirectory-library-for-dotnet#482

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants