microsoft / MSCloudLoginAssistant

PowerShell Module Handling Authentication to Cloud Services
https://www.powershellgallery.com/packages/MSCloudLoginAssistant/
MIT License
76 stars 50 forks source link

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

Open mlhickey opened 1 year ago

mlhickey commented 1 year ago

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

andikrueger commented 1 year ago

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