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
201 stars 176 forks source link

Export-Import-Platform.ps1 - "Logon Token is Empty - Cannot Login" #115

Closed Jayk423 closed 4 years ago

Jayk423 commented 4 years ago

Line 125 needs to be updated to read:

$logonHeader.Add("Authorization",$logonToken.CyberArkLogonResult)

Thanks! Jake

Jayk423 commented 4 years ago

This is actually 1st Gen vs. 2nd Gen related: https://docs.cyberark.com/Product-Doc/OnlineHelp/PAS/Latest/en/Content/SDK/CyberArk%20Authentication%20-%20Logon_v10.htm

1st gen authenetication returns the logon token inside of the CyberArkLogonResult property of the result. 2nd Gen does not.

AssafMiron commented 4 years ago

Hi @Jayk423 Seems like this is resolved Can this issue be closed?