Skip to content

Commit 78b9990

Browse files
authored
Fix psPAS session format (#416)
psPAS session object requires more members to work fully
1 parent b653874 commit 78b9990

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

Identity Authentication/IdentityAuth.psm1

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -522,10 +522,18 @@ function Format-Token {
522522
$session = New-Object Microsoft.PowerShell.Commands.WebRequestSession
523523
$session.Headers = $IdentityHeaders
524524
$IdentityHeaders = [PSCustomObject]@{
525-
User = $IdentityUserName
526-
BaseURI = $PCloudTenantAPIURL
527-
ExternalVersion = $ExternalVersion
528-
WebSession = $session
525+
User = $IdentityUserName
526+
BaseURI = $PCloudTenantAPIURL
527+
ApiURI = "https://$PCloudSubdomain.privilegecloud.cyberark.cloud"
528+
ExternalVersion = $ExternalVersion
529+
WebSession = $session
530+
StartTime = $null
531+
ElapsedTime = $null
532+
LastCommand = $null
533+
LastCommandTime = $null
534+
LastCommandResults = $null
535+
LastError = $null
536+
LastErrorTime = $null
529537
}
530538
$IdentityHeaders.PSObject.TypeNames.Insert(0, 'psPAS.CyberArk.Vault.Session')
531539
}

0 commit comments

Comments
 (0)