Skip to content
This repository has been archived by the owner on Jun 7, 2022. It is now read-only.

Commit

Permalink
more verbose secret updates, #120
Browse files Browse the repository at this point in the history
  • Loading branch information
gdbarron-d committed Dec 19, 2020
1 parent 136a89f commit f64d55c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions VenafiTppPS/Code/Private/Write-VerboseWithSecret.ps1
Expand Up @@ -9,7 +9,7 @@ Remove sensitive information when writing verbose info
JSON string or other object
.PARAMETER SecretName
Name of secret(s) to hide their values. Default value is 'Password', 'AccessToken', 'RefreshToken'
Name of secret(s) to hide their values. Default value is 'Password', 'AccessToken', 'RefreshToken', 'access_token', 'refresh_token'
.INPUTS
InputObject
Expand Down Expand Up @@ -37,7 +37,7 @@ function Write-VerboseWithSecret {
[psobject] $InputObject,

[Parameter()]
[string[]] $PropertyName = @('AccessToken', 'Password', 'RefreshToken')
[string[]] $PropertyName = @('AccessToken', 'Password', 'RefreshToken', 'access_token', 'refresh_token')
)

begin {
Expand Down
2 changes: 1 addition & 1 deletion VenafiTppPS/Code/Public/New-TppToken.ps1
Expand Up @@ -143,7 +143,7 @@ function New-TppToken {

$response = Invoke-TppRestMethod @params

Write-Verbose ($response | Out-String)
$response | Write-VerboseWithSecret

[PSCustomObject] @{
AuthUrl = $AuthUrl
Expand Down

0 comments on commit f64d55c

Please sign in to comment.