vmware-archive / vcd-cli

Command Line Interface for VMware vCloud Director
https://vmware.github.io/vcd-cli
Other
165 stars 105 forks source link

[VCDA - 1341] Added JWT based authorization support in vcd-cli #510

Closed rocknes closed 4 years ago

rocknes commented 4 years ago

In response to https://github.com/vmware/pyvcloud/pull/637, made the necessary changes in vcd-cli so that vcd-cli can leverage the JWT token for authentication and session restoration.

This changes made in this PR are as follows

Testing done: Manually invoke vcd login command with different api versions, and looked at the logs and profile.yaml to make sure that the correct end points are being used and the right token is being saved. Also tested that subsequent operations e.g. listing of orgs, info on vdc etc. are working fine for all both sys admins and regular tenant users.


This change is Reviewable