infamousjoeg / cybr-cli

A "Swiss Army Knife" command-line interface (CLI) for easy human and non-human interaction with @CyberArk suite of products.
Apache License 2.0
72 stars 16 forks source link

Identity authentication type does not support PodFqdn #209

Closed infamousjoeg closed 1 year ago

infamousjoeg commented 1 year ago

Describe the bug Currently, cybr-cli uses platform discovery to determine the tenant id. It then uses the format of tenantid.id.cyberark.cloud to start authentication with Identity. In some instances, a PodFqdn could be required instead of utilizing the tenant id. If this is the case, that is the only value returned in the JSON response when starting authentication. This is not currently supported in cybr-cli.

To Reproduce Steps to reproduce the behavior:

  1. Setup a PodFqdn for your Identity tenant.
  2. Attempt a cybr logon command using -a identity.

Expected behavior Regardless of whether a PodFqdn is required or not, cybr-cli should be able to determine the proper base URL to send the start authentication request to.