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
Added a new field in profile to distinguish between x-vcloud-authorization and jwt token
Addressed removal of rehydrate methods from pyvcloud's client.py
Adjusted code to accomodate the new streamlined api version negotiation code in pyvcloud.
Got rid of well known endpoints from profiles, it was not being used anywhere.
Minor flake8 changes
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.
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](https://reviewable.io/review_button.svg)