Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Binary extension module not returning objects? #213

Open
3 tasks done
parithon opened this issue Jun 1, 2023 · 0 comments
Open
3 tasks done

Binary extension module not returning objects? #213

parithon opened this issue Jun 1, 2023 · 0 comments

Comments

@parithon
Copy link

parithon commented Jun 1, 2023

Prerequisites

  • Write a descriptive title.
  • Make sure you are able to repro it on the latest released version
  • Search the existing issues.

Steps to reproduce

I'm attempting to learn how to develop a vault using a binary extension to a front-end PowerShell module. However, it doesn't return the information I expect. I am building the Parithon.Test.Vault.Extension using netstandard2.0.

  1. Clone: https://github.com/parithon/Parithon.Test.Vault
  2. Run the following: .\build.ps1
  3. Execute the following: Register-TestVault -Name <name>
  4. Then execute: Get-SecretInfo -Verbose

Expected behavior

When running `Get-SecretInfo` I expect two objects to returned

Actual behavior

I see my verbose messages logged to the console, but no objects are returned.

Error details

No response

Environment data

Name                           Value
----                           -----
PSVersion                      5.1.22621.963
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.22621.963
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

Version

NA

Visuals

PS > Get-SecretInfo -Verbose
VERBOSE: Invoking command Get-SecretInfo on module Parithon.Test.Vault.Extension
VERBOSE: Sending: {"Name":"MySecret","Type":"Hashtable","VaultName":"Test","Metadata":{}}
VERBOSE: Sending: {"Name":"MySecret2","Type":"PSCredential","VaultName":"Test","Metadata":{"Description":"Some description about this secret.","Alt":"Message"}}
VERBOSE: EndProcessing
VERBOSE: Secret information was successfully retrieved from vault Test.
PS >

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant