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-MgGraph requires SecureString for accesstoken in MI auth #163

Open
mlhickey opened this issue Aug 10, 2023 · 1 comment
Open

Connect-MgGraph requires SecureString for accesstoken in MI auth #163

mlhickey opened this issue Aug 10, 2023 · 1 comment

Comments

@mlhickey
Copy link

mlhickey commented Aug 10, 2023

Simplest path may be to add:
`
$accessToken = ConvertTo-SecureString -String $accessToken -AsPlainText -Force

around line 85 prior to the actual connect attempt. Looks like this got missed during the other SecureString updates

@mlhickey mlhickey changed the title Connect-MgGraph requires SecureString for accesstoken Connect-MgGraph requires SecureString for accesstoken in MI auth Aug 10, 2023
@andikrueger
Copy link
Contributor

Thanks for reporting. I’ll look into creating a fix.

NikCharlebois added a commit that referenced this issue Sep 5, 2023
Fixed type conversion for MI login
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