cyberark / epv-api-scripts

These API scripts enable CyberArk users to automate privileged account management task like account creation, user management, and more.
https://www.cyberark.com/best
Apache License 2.0
197 stars 176 forks source link

Fix for `psPASFormat` parameter for `Get-IdentityHeader` in `IdentityAuth.psm1` #329

Closed aaearon closed 1 year ago

aaearon commented 1 year ago

Desired Outcome

This PR changes the way Get-IdentityHeader in IdentityAuth.psm1 creates a psPAS.CyberArk.Vault.Session by using $Object.PSObject.TypeNames instead of the private function Add-ObjectDetail from psPAS.

Implemented Changes

The parameter psPASFormat for IdentityAuth.psm1 now works as it does not use a private function.

Connected Issue/Story

Resolves #321

Definition of Done

At least 1 todo must be completed in the sections below for the PR to be merged.

Changelog

Test coverage

Documentation

Behavior

Security