Jupyter-PowerShell icon indicating copy to clipboard operation
Jupyter-PowerShell copied to clipboard

Get-Credential does not work

Open Jaykul opened this issue 7 years ago • 3 comments

Neither, for that matter does anything else which needs to prompt for input.

To get this working I need to write a proper "Host" so it's not the highest priority.

The workaround (for me, at least) is to use the BetterCredentials and -Store the credentials from a regular PowerShell session so I can use them here.

Jaykul avatar Jul 04 '17 13:07 Jaykul

The workaround that I've used (albeit insecure) is:

$Password = 'P@ssword'
$Username = "UserName"
$credential = New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList $Username,$(convertTo-SecureString -AsPlainText -Force -String $Password)

I'm split as to if BetterCredentials in this case is insecure. Anyone with access to the Notebook will have access to the credentials of the user running the Notebook...

knoxyca avatar Jul 04 '17 15:07 knoxyca

Well, access to a notebook (e.g. readme.ipynb) doesn't mean you have access to my computer, account and thus credentials stored in my Windows Credential Vault -- there are hundreds of ways I could share that document with you...

Jaykul avatar Jul 05 '17 18:07 Jaykul

Good point. I was thinking more in the context of my having access to your jupyter instance. If I have access to your jupyter instance, then I have access to your information, but if I just have the notebook, then I don't really have the access (unless you take my workaround and store it in the notebook...).

For my use case the credential stored in the notebook is fine as the credentials aren't considered secure.

knoxyca avatar Jul 05 '17 18:07 knoxyca