Closed MarkMichaelis closed 8 years ago
Certainly... didn't even occur to me to do otherwise. I was assuming the default value was pulled from another source like Credential Store as you suggested.... not something we would hard code. Andrew believes he saw something like this as part of PowerShell Gallery but if not, we will use the credential store or some local machine mechanism.
Added integration with IntelliTect.CredentialManager if it is installed/imported in eaca2b7.
Add the API key using Set-CredentialManagerCredential psgallery
(make the username whatever you want; it isn't used)
I would strongly argue against this. Providing a default value would mean checking in the API key into publicly-visible code, which means anyone could impersonate IntelliTect on PS Gallery. Is there a way to cache a simple string in the Windows Credential Store, so that a publisher will only be prompted once in a session?