darrenjrobinson/1Pwd

Test-1PasswordCredentials returns a text variable rather than an hashed array variable

Opened this issue · 0 comments

This doesn't have the right to work because the returned value for $account is a textual and not a parsed hashed array variable.
Test-1PasswordCredentials output is text.

$account = Test-1PasswordCredentials -SignInAddress $1PSignInAddress -SignInAccount $1PSignInAccount -SecretKey $1PSecretKey -MasterPassword $1PMasterPassword
...
Set-1PasswordConfiguration -Vault $account.domain -SignInAddress $1PSignInAddress -SignInAccount $1PSignInAccount -SecretKey $1PSecretKey -MasterPassword $1PMasterPassword -Default

# $account
ID:         xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Name:       xxxxxxxxxxxxxxxxxxxxxxxx
Domain:     xxxxxxxxx
Type:       xxxxxxxxx
State:      ACTIVE
Created:    xxxxxxxxxxx
# $account.ID
# $account.Domain
#

https://blog.darrenjrobinson.com/using-1password-with-powershell/