Open bvoilar opened 1 year ago
@buvoilajar, we have received your signed contributor license agreement. The review is usually completed within a week, but may take longer under certain circumstances. Another comment will be added to the pull request to notify you when the merge can proceed.
@buvoilajar, VMware has approved your signed contributor license agreement.
Description
Add support for authentication using API Access Tokens. The authentication follows RFC6749 (OAuth 2.0). If the
user
argument of the login cli is set to "api_token" thesession-id
is interpreted as API Access Token. An oAuth 2.0 authentication request is made to the token endpoint and the access_token from the response is used assession-id
. Furthermore, the pyvcloud client'srehydrate_from_token
function must be called with the optional argumentis_jwt_token=True
.API Access Token authentication is useful when vCloud Director is configured to authenticate through an external identity provider.
Implements feature request: #581
Usage