Skip to content
This repository was archived by the owner on Dec 8, 2021. It is now read-only.
This repository was archived by the owner on Dec 8, 2021. It is now read-only.

Cannot return a PSCredential object to the module #33

@Agazoth

Description

@Agazoth

When returning a PSCredential object to the Module I get Get-Secret: The secret was not found.

Steps to reproduce

Build an extension that returns a PSCredential object

Get-Secret -Name MySecret -Vault MyVault

Expected behavior

UserName    Password
--------         --------
MyUser         System.Security.SecureString

Actual behavior

Get-Secret: The secret MySecret was not found.

Environment data

Module version:

Name                           Value
----                           -----
PSVersion                      7.0.0-rc.2
PSEdition                      Core
GitCommitId                    7.0.0-rc.2
OS                             Microsoft Windows 10.0.18363
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-QuestionQuestion or undetermined type of issueModule-SecretsManagementIssues for the Microsoft.PowerShell.SecretsManagement module

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions