-
Notifications
You must be signed in to change notification settings - Fork 155
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
Microsoft.Graph.Application version 2.0.0 AccessToken #2123
Comments
fyi, 2.0.0 version also affects/breaks automation (app auth) via Get-WindowsAutoPilotInfo. |
We found out there is a new way to connect without using an AccessToken directly. This is the adapted script:
|
What is the actual fix for the error in the issue? A workaround isn't sufficient. The cmdlet still supports tokens and changed the type to securestring, so why does it still error out? Edit: I got it working, you need to wrap the value of |
I'd advice to use the ClientSecretCredential as suggested |
Thanks, converting Access token to secure string solved my issue. :)
|
Thanks. Typo fixed. -Force is needed for 5.1 however, which is what my implementation uses. |
Describe the bug
Since version 2.0.0 of the Microsoft.Graph.Application powershell module we are not able to connect using an accesstoken.
To Reproduce
Expected behavior
After runing this powershell script we expect to connect to Microsoft Graph. Instead we get an error saying:
Cannot bind parameter 'AccessToken'. Cannot convert the "****************" value of type "System.String" to type "System.Security.SecureString"
Module Version
2.0.0
Additional context
When we downgrade the module to version 1.28 it works again
The text was updated successfully, but these errors were encountered: