Can WSL inherit windows auth credentials Can WSL inherit windows auth credentials windows windows

Can WSL inherit windows auth credentials


I got you Fam!

Here is the solution : http://michaeljw.com/blog/post/keyring-r-python-windows/

Here is the Sauce:

  1. Use the Windows Credential Manager to store the creds you want to use

https://support.microsoft.com/en-us/windows/accessing-credential-manager-1b5c916a-6a16-889f-8581-fc16e8165ac0

  1. Here is the command for accessing the credential manager in Python:

keyring.get_password(u"[Domain or URI]", u"[username]")


As long as the user is in the cred manager, you should be able to use that command to variablize creds. You will probably have to play with it a bit to get it right, but it will work. Be sure to read the linked articles.

Enjoy